== Clamp To Constraint - Depsgraph Fix Part2 ==
authorJoshua Leung <aligorith@gmail.com>
Thu, 21 Jun 2007 06:23:38 +0000 (06:23 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 21 Jun 2007 06:23:38 +0000 (06:23 +0000)
Now when editing the curve that a Bone with a Clamp To Constraint uses as its target, the Bones's position will be updated in realtime to match to changes in the curve.

This should also work for the FollowPath constraint now too.

source/blender/blenkernel/intern/depsgraph.c

index bc3bbee934286d060e492d5f44306f39f5d904cc..abb0dce0ca2ac5fc216528bd891350cba6c23c08 100644 (file)
@@ -380,6 +380,8 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int
                                                        
                                                        if(subtarget && subtarget[0])
                                                                dag_add_relation(dag,node3,node, DAG_RL_OB_DATA|DAG_RL_DATA_DATA);
+                                                       else if(ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO))   
+                                                               dag_add_relation(dag,node3,node, DAG_RL_DATA_DATA|DAG_RL_OB_DATA);
                                                        else
                                                                dag_add_relation(dag,node3,node, DAG_RL_OB_DATA);