Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out...
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 22 Aug 2017 14:27:33 +0000 (16:27 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 22 Aug 2017 14:27:33 +0000 (16:27 +0200)
source/blender/depsgraph/intern/builder/deg_builder_relations.cc

index 0bbefe3a95421dc53e7707ba0d1849d6503200f6..ce5ecf7994899c5840eb5309517ce5145024308d 100644 (file)
@@ -752,6 +752,9 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id,
                                        /* 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);
+                                       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 */