From a59fab461c8b06b5ea95886841042899c2ebfaf5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Nov 2014 14:03:58 +0100 Subject: Fix-for-fix ik-spline clamp existing files too --- source/blender/blenkernel/intern/armature.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 00cfa05d29c..afc0ff726ce 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 */ -- cgit v1.2.3