[Bf-blender-cvs] [0bee1269773] blender-v2.79-release: Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
Sergey Sharybin
noreply at git.blender.org
Mon Sep 4 14:19:02 CEST 2017
Commit: 0bee12697737718345da3ce8dacce5e7d0523454
Author: Sergey Sharybin
Date: Tue Aug 22 16:27:33 2017 +0200
Branches: blender-v2.79-release
https://developer.blender.org/rB0bee12697737718345da3ce8dacce5e7d0523454
Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 873102fda18..d260687114a 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -733,8 +733,10 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id, eDepsNode
else if (ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO)) {
/* these constraints require path geometry data... */
ComponentKey target_key(&ct->tar->id, DEG_NODE_TYPE_GEOMETRY);
- add_relation(target_key, constraint_op_key, cti->name); // XXX: type = geom_transform
- // TODO: path dependency
+ add_relation(target_key, constraint_op_key, cti->name);
+ ComponentKey target_transform_key(&ct->tar->id,
+ DEG_NODE_TYPE_TRANSFORM);
+ add_relation(target_transform_key, constraint_op_key, cti->name);
}
else if ((ct->tar->type == OB_ARMATURE) && (ct->subtarget[0])) {
/* bone */
More information about the Bf-blender-cvs
mailing list