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:
authorJoshua Leung <aligorith@gmail.com>2015-01-13 08:13:57 +0300
committerJoshua Leung <aligorith@gmail.com>2015-01-13 08:13:57 +0300
commit8787532184e648e38b4ecee0709dcf87b95862b1 (patch)
tree82eea3a0835c5d66e5a0d683a437fda3e7a50a2a /source/blender/blenkernel/intern/armature.c
parentf0361fcf54e8d15790e2bad5c7402f6af3c24083 (diff)
Bugfix: The "bulge_min" setting for the Stretch To constraint prevented bones from shrinking below 1.0 scale
From the looks of things, this was a typo. The result was that if you had a bone with the minimum volume restriction in place, the bone would not get any thinner when it was stretched out.
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r--source/blender/blenkernel/intern/armature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 88b46efc9e6..9232cd6b64b 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -2213,7 +2213,7 @@ static void splineik_evaluate_bone(tSplineIK_Tree *tree, Scene *scene, Object *o
}
if (bulge < 1.0f) {
if (ikData->flag & STRETCHTOCON_USE_BULGE_MIN) {
- float bulge_min = CLAMPIS(ikData->bulge_max, 0.0f, 1.0f);
+ float bulge_min = CLAMPIS(ikData->bulge_min, 0.0f, 1.0f);
float hard = max_ff(bulge, bulge_min);
float range = 1.0f - bulge_min;