Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-11-04 16:03:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-11-04 16:09:38 +0300
commita59fab461c8b06b5ea95886841042899c2ebfaf5 (patch)
tree88a403190894ad8cd9187f49faaed47078d5cf61 /source/blender
parent176f0102eaacc9f9caa5de24326137a8c3fa0f89 (diff)
Fix-for-fix ik-spline clamp existing files too
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/armature.c6
1 files changed, 3 insertions, 3 deletions
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
*/