Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-06-21 10:23:38 +0400
committerJoshua Leung <aligorith@gmail.com>2007-06-21 10:23:38 +0400
commit371e52c32f07ab1cd61f1fdad157c9c2f506682f (patch)
tree513e877f352019249248135ba96a42ed6b8302fd /source/blender/blenkernel
parentba54e09fb7134eae5f0c1f9185df835c5c11bfbf (diff)
== Clamp To Constraint - Depsgraph Fix Part2 ==
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index bc3bbee9342..abb0dce0ca2 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -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);