[Bf-blender-cvs] [a52984b] depsgraph_refactor: rootchan variables are unused for constructing relations.

Lukas Tönne noreply at git.blender.org
Thu Jun 19 09:11:33 CEST 2014


Commit: a52984baa74b92b145692067f4617adb9735bb49
Author: Lukas Tönne
Date:   Thu Jun 19 09:02:59 2014 +0200
https://developer.blender.org/rBa52984baa74b92b145692067f4617adb9735bb49

rootchan variables are unused for constructing relations.

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

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 ef49470..5c18f16 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -640,7 +640,6 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob, bPoseChannel *pchan, bC
 		parchan = pchan->parent;
 	
 	/* Walk to the chain's root */
-	bPoseChannel *rootchan = pchan;
 	size_t segcount = 0;
 	while (parchan) {
 		/* Make IK-solver dependent on this bone's result,
@@ -656,7 +655,6 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *ob, bPoseChannel *pchan, bC
 		segcount++;
 		if ((segcount == data->rootbone) || (segcount > 255)) break;  /* 255 is weak */
 		
-		rootchan = parchan;
 		parchan  = parchan->parent;
 	}
 }
@@ -682,12 +680,8 @@ void DepsgraphRelationBuilder::build_splineik_pose(Object *ob, bPoseChannel *pch
 	}
 	
 	/* Walk to the chain's root */
-	bPoseChannel *rootchan = pchan;
 	size_t segcount = 0;
-	for (bPoseChannel *parchan = pchan->parent;
-	     parchan;
-	     rootchan = parchan,  parchan = parchan->parent)
-	{
+	for (bPoseChannel *parchan = pchan->parent; parchan; parchan = parchan->parent) {
 		/* Make Spline IK solver dependent on this bone's result,
 		 * since it can only run after the standard results 
 		 * of the bone are know. Validate links step on the




More information about the Bf-blender-cvs mailing list