Depsgraph: Fix missing update when property from proxy rig drives something
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 29 Jan 2018 13:53:27 +0000 (14:53 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 29 Jan 2018 13:53:27 +0000 (14:53 +0100)
source/blender/depsgraph/intern/builder/deg_builder_relations.cc

index 85ea2c0a8e4352eee97347b8dc7ce8083018d208..107ba8dc9a1a92ba6632c88db09b9009e6034f6e 100644 (file)
@@ -535,6 +535,14 @@ void DepsgraphRelationBuilder::build_object(Object *object)
                ComponentKey ob_pose_key(&object->id, DEG_NODE_TYPE_EVAL_POSE);
                ComponentKey proxy_pose_key(&object->proxy->id, DEG_NODE_TYPE_EVAL_POSE);
                add_relation(ob_pose_key, proxy_pose_key, "Proxy");
+
+               ComponentKey ob_parameters_key(&object->id,
+                                              DEG_NODE_TYPE_PARAMETERS);
+               ComponentKey proxy_parameters_key(&object->proxy->id,
+                                                 DEG_NODE_TYPE_PARAMETERS);
+               add_relation(ob_parameters_key,
+                            proxy_parameters_key,
+                            "Proxy Parameters");
        }
        /* Object dupligroup. */
        if (object->dup_group != NULL) {