Missing check for constraint target (ct->tar) caused crash.

Caused in Joshua's work on constraint, committed yesterday.
This commit is contained in:
Ton Roosendaal
2007-10-22 14:30:40 +00:00
parent 81effa9e2f
commit 0361b80525

View File

@@ -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);