Depsgraph: Fix face dependency cycle when bone uses id property from self
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 11 Jul 2018 08:19:56 +0000 (10:19 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 11 Jul 2018 08:19:56 +0000 (10:19 +0200)
source/blender/depsgraph/intern/depsgraph.cc

index 34fb20ee2bace1f9ee73b21e37f2f54ed0a1f80a..241c3fb9ac3f1a5bd244a57df2c41d4660660ddf 100644 (file)
@@ -128,9 +128,9 @@ static bool pointer_to_component_node_criteria(
                bPoseChannel *pchan = (bPoseChannel *)ptr->data;
                if (prop != NULL && RNA_property_is_idprop(prop)) {
                        *type = DEG_NODE_TYPE_PARAMETERS;
-                       *subdata = "";
-                       *operation_code = DEG_OPCODE_PARAMETERS_EVAL;
-                       *operation_name = pchan->name;
+                       *operation_code = DEG_OPCODE_ID_PROPERTY;
+                       *operation_name = RNA_property_identifier((PropertyRNA *)prop);
+                       *operation_name_tag = -1;
                }
                else {
                        /* Bone - generally, we just want the bone component. */