== Clamp To Constraint ==
authorJoshua Leung <aligorith@gmail.com>
Wed, 20 Jun 2007 12:09:05 +0000 (12:09 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 20 Jun 2007 12:09:05 +0000 (12:09 +0000)
Now when editing the curve that an Object with a Clamp To Constraint uses as its target, the Object's position will be updated in realtime to match to changes in the curve.

I was going to have this working for bones too, but I haven't got that quite working yet.

source/blender/blenkernel/intern/depsgraph.c

index a71ed731b078961f9db1970f3aa0ca2e2a91f93e..bc3bbee934286d060e492d5f44306f39f5d904cc 100644 (file)
@@ -573,7 +573,7 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int
                        Object *obt= get_constraint_target(con, &str);
                        
                        node2 = dag_get_node(dag, obt);
-                       if(con->type==CONSTRAINT_TYPE_FOLLOWPATH)
+                       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(obt->type==OB_ARMATURE && str[0])