[Bf-blender-cvs] [550807b] depsgraph_refactor: Depsgraph: Temporary debugging code to check that the IK chains are getting built correctly

Joshua Leung noreply at git.blender.org
Sat Jan 31 00:54:06 CET 2015


Commit: 550807b9c6f3de22701c02b292e19fb5ac72a8b0
Author: Joshua Leung
Date:   Sat Jan 31 12:47:20 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB550807b9c6f3de22701c02b292e19fb5ac72a8b0

Depsgraph: Temporary debugging code to check that the IK chains are getting built correctly

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
index 2d5a7fb..3c30964 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -1014,6 +1014,7 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
 		}
 	}
 	
+	printf("\nStarting IK Build: pchan = %s, target = (%s, %s), segcount = %d\n", pchan->name, data->tar->id.name, data->subtarget, data->rootbone);
 	
 	bPoseChannel *parchan = pchan;
 	/* exclude tip from chain? */
@@ -1046,6 +1047,7 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
 		root_map->add_bone(parchan->name, rootchan->name);
 
 		/* continue up chain, until we reach target number of items... */
+		printf("  %d = %s\n", segcount, parchan->name);
 		segcount++;
 		if ((segcount == data->rootbone) || (segcount > 255)) break;  /* 255 is weak */




More information about the Bf-blender-cvs mailing list