Fix for bug #7845:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 11:16:20 +0000 (11:16 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 18 Feb 2008 11:16:20 +0000 (11:16 +0000)
IK stretch lead to bone shaking a bit too quickly since making IK
scale independent, now does more strict clamping of stretch again.

source/blender/blenkernel/intern/armature.c

index a7179034ad7b18cc2887af402ba8ce94d95d81ea..7ec56bd08abbfb7915a60fa67a7b6d5f7cc6d864 100644 (file)
@@ -1755,7 +1755,7 @@ static void execute_posetree(Object *ob, PoseTree *tree)
 
                if(tree->stretch && (pchan->ikstretch > 0.0)) {
                        float ikstretch = pchan->ikstretch*pchan->ikstretch;
-                       IK_SetStiffness(seg, IK_TRANS_Y, MIN2(1.0-ikstretch, 0.999));
+                       IK_SetStiffness(seg, IK_TRANS_Y, MIN2(1.0-ikstretch, 0.99));
                        IK_SetLimit(seg, IK_TRANS_Y, 0.001, 1e10);
                }
        }