[Bf-blender-cvs] [c1d6a26] master: Fix T45239: New depsgraph does not work with IK pole target

Sergey Sharybin noreply at git.blender.org
Tue Jun 30 16:48:53 CEST 2015


Commit: c1d6a26842aca53844aed99528c88320c10b56b5
Author: Sergey Sharybin
Date:   Tue Jun 30 16:48:02 2015 +0200
Branches: master
https://developer.blender.org/rBc1d6a26842aca53844aed99528c88320c10b56b5

Fix T45239: New depsgraph does not work with IK pole target

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index 41c8054..2453701 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -1182,7 +1182,7 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
 	/* Pole Target */
 	// XXX: this should get handled as part of the constraint code
 	if (data->poletar != NULL) {
-		if ((data->tar->type == OB_ARMATURE) && (data->subtarget[0])) {
+		if ((data->poletar->type == OB_ARMATURE) && (data->polesubtarget[0])) {
 			// XXX: same armature issues - ready vs done?
 			ComponentKey target_key(&data->poletar->id, DEPSNODE_TYPE_BONE, data->subtarget);
 			add_relation(target_key, solver_key, DEPSREL_TYPE_TRANSFORM, con->name);




More information about the Bf-blender-cvs mailing list