diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-08-23 10:25:45 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-08-23 10:25:45 +0400 |
commit | 6cd036ed4403beeddf6a4bf31249e7e90826f043 (patch) | |
tree | 5628437e0cd2c73396bf0c317176db846b7e53b4 /source/blender | |
parent | 3e7fc6145fb717a4879b0daba63b4cb0cc972437 (diff) |
Bugfix #7091: "blender crashes when i put a constraint between two armatures"
This crash only occurred when the RigidBody constraint was used, and the toObject field was set to an armature, as the RigidBody constraint doesn't use subtargets.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index f72db559197..8e2feba1e2f 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -578,7 +578,7 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int if(ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO)) dag_add_relation(dag, node2, node, DAG_RL_DATA_OB|DAG_RL_OB_OB); else { - if(ELEM3(obt->type, OB_ARMATURE, OB_MESH, OB_LATTICE) && str[0]) + if(ELEM3(obt->type, OB_ARMATURE, OB_MESH, OB_LATTICE) && str && str[0]) dag_add_relation(dag, node2, node, DAG_RL_DATA_OB|DAG_RL_OB_OB); else dag_add_relation(dag, node2, node, DAG_RL_OB_OB); |