[Bf-blender-cvs] [9a64812] depsgraph_refactor: Depsgraph: Use DEBUG_PRINTF for IK chain debug prints

Sergey Sharybin noreply at git.blender.org
Mon Feb 2 15:48:16 CET 2015


Commit: 9a64812d50305c5beda8dcde7d291f3dbcf46c57
Author: Sergey Sharybin
Date:   Mon Feb 2 19:47:53 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB9a64812d50305c5beda8dcde7d291f3dbcf46c57

Depsgraph: Use DEBUG_PRINTF for IK chain debug prints

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

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 2ba3934..d6f78b8 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -1052,9 +1052,10 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob,
 			add_relation(target_key, solver_key, DEPSREL_TYPE_TRANSFORM, con->name);
 		}
 	}
-	
-	printf("\nStarting IK Build: pchan = %s, target = (%s, %s), segcount = %d\n", pchan->name, data->tar->id.name, data->subtarget, data->rootbone);
-	
+
+	DEG_DEBUG_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? */
 	if (!(data->flag & CONSTRAINT_IK_TIP))
@@ -1086,7 +1087,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);
+		DEG_DEBUG_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