Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-10-22 18:30:40 +0400
committerTon Roosendaal <ton@blender.org>2007-10-22 18:30:40 +0400
commit0361b80525337ec24875fed72ec516e37acc5235 (patch)
treed449ba1542381ce689aebf33cb681358df0a6256 /source/blender/blenkernel/intern
parent81effa9e2f744236a05fba3a73879b861fc1e873 (diff)
Missing check for constraint target (ct->tar) caused crash.
Caused in Joshua's work on constraint, committed yesterday.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index fc7e6d61f8a..11ec8670ed1 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -379,7 +379,7 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int
cti->get_constraint_targets(con, &targets);
for (ct= targets.first; ct; ct= ct->next) {
- if (ct->tar != ob) {
+ if (ct->tar && ct->tar != ob) {
// fprintf(stderr,"armature %s target :%s \n", ob->id.name, target->id.name);
node3 = dag_get_node(dag, ct->tar);