Depsgraph: Add missing bone properties to proxy rigs
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 5 Dec 2017 16:34:11 +0000 (17:34 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 6 Dec 2017 09:21:33 +0000 (10:21 +0100)
source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc

index 19533272ef558e6e2a22384a6f47664cf54e0501..3ef1eb547b51cf400080235a0d19e244b45039f2 100644 (file)
@@ -285,6 +285,15 @@ void DepsgraphNodeBuilder::build_proxy_rig(Object *object)
                op_node = add_operation_node(&object->id, DEG_NODE_TYPE_BONE, pchan->name,
                                             NULL, DEG_OPCODE_BONE_DONE);
                op_node->set_as_exit();
+
+               /* Custom properties. */
+               if (pchan->prop != NULL) {
+                       add_operation_node(&object->id,
+                                          DEG_NODE_TYPE_PARAMETERS,
+                                          NULL,
+                                          DEG_OPCODE_PARAMETERS_EVAL,
+                                          pchan->name);
+               }
        }
 
        op_node = add_operation_node(&object->id, DEG_NODE_TYPE_EVAL_POSE,