[Bf-blender-cvs] [a59fab4] master: Fix-for-fix ik-spline clamp existing files too

Campbell Barton noreply at git.blender.org
Tue Nov 4 14:10:30 CET 2014


Commit: a59fab461c8b06b5ea95886841042899c2ebfaf5
Author: Campbell Barton
Date:   Tue Nov 4 14:03:58 2014 +0100
Branches: master
https://developer.blender.org/rBa59fab461c8b06b5ea95886841042899c2ebfaf5

Fix-for-fix ik-spline clamp existing files too

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

M	source/blender/blenkernel/intern/armature.c

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

diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 00cfa05..afc0ff7 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -1940,13 +1940,13 @@ static void splineik_init_tree_from_pchan(Scene *scene, Object *UNUSED(ob), bPos
 			}
 		}
 
-		/* disallow negative values (happens with float precision) */
-		CLAMP_MIN(ikData->points[segcount], 0.0f);
-
 		/* spline has now been bound */
 		ikData->flag |= CONSTRAINT_SPLINEIK_BOUND;
 	}
 
+	/* disallow negative values (happens with float precision) */
+	CLAMP_MIN(ikData->points[segcount], 0.0f);
+
 	/* apply corrections for sensitivity to scaling on a copy of the bind points,
 	 * since it's easier to determine the positions of all the joints beforehand this way
 	 */




More information about the Bf-blender-cvs mailing list