== Clamp To Constraint - Depsgraph Fix Part2 ==
[blender-staging.git] / 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);