[Bf-blender-cvs] [52ef97e] depsgraph_refactor: Setting bone component channel explicitly is redundant, the component already does this in the init method based on the name.

Lukas Tönne noreply at git.blender.org
Mon May 26 12:42:00 CEST 2014


Commit: 52ef97eff2dcf80d162d730b15a7c60c11390e2b
Author: Lukas Tönne
Date:   Mon May 26 10:47:48 2014 +0200
https://developer.blender.org/rB52ef97eff2dcf80d162d730b15a7c60c11390e2b

Setting bone component channel explicitly is redundant, the component
already does this in the init method based on the name.

Eventually the pchan field might be removed entirely, currently it
doesn't look like it has a purpose.

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

M	source/blender/depsgraph/intern/depsgraph_build_nodes.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index 4d69f3c..f766935 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -604,7 +604,6 @@ void DepsgraphNodeBuilder::build_rig(IDDepsNode *ob_node, Object *ob)
 	for (bPoseChannel *pchan = (bPoseChannel *)ob->pose->chanbase.first; pchan; pchan = pchan->next) {
 		/* component for hosting bone operations */
 		BoneComponentDepsNode *bone_node = (BoneComponentDepsNode *)add_component_node(ob_node, DEPSNODE_TYPE_BONE, pchan->name);
-		bone_node->pchan = pchan;
 		
 		/* node for bone eval */
 		add_operation_node(bone_node, DEPSNODE_TYPE_OP_BONE,




More information about the Bf-blender-cvs mailing list