[Bf-blender-cvs] [0ed54cf9ba9] master: Depsgraph: Fix face dependency cycle when bone uses id property from self

Sergey Sharybin noreply at git.blender.org
Wed Jul 11 10:23:36 CEST 2018


Commit: 0ed54cf9ba9f5b5df8fbcbe15243dd88621205a0
Author: Sergey Sharybin
Date:   Wed Jul 11 10:19:56 2018 +0200
Branches: master
https://developer.blender.org/rB0ed54cf9ba9f5b5df8fbcbe15243dd88621205a0

Depsgraph: Fix face dependency cycle when bone uses id property from self

===================================================================

M	source/blender/depsgraph/intern/depsgraph.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index 34fb20ee2ba..241c3fb9ac3 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -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. */



More information about the Bf-blender-cvs mailing list