Fix compile error, IK_STRETCH_STIFF_EPS was undefined.
authorThomas Dinges <blender@dingto.org>
Sun, 29 Jul 2012 19:50:03 +0000 (19:50 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 29 Jul 2012 19:50:03 +0000 (19:50 +0000)
source/blender/ikplugin/intern/itasc_plugin.cpp

index 516a4c7fdda4ac047d632ae30dc154c291cb2d94..7a53fe247fe70ab368d0b561bfe343b197106e7f 100644 (file)
@@ -1256,7 +1256,7 @@ static IK_Scene *convert_tree(Scene *blscene, Object *ob, bPoseChannel *pchan)
                        ret = arm->addSegment(joint, parent, KDL::Joint::TransY, rot[ikchan->ndof - 1]);
                        const float ikstretch = pchan->ikstretch * pchan->ikstretch;
                        /* why invert twice here? */
-                       weight[1] = (1.0 - minf(1.0 - ikstretch, 1.0f - IK_STRETCH_STIFF_EPS));
+                       weight[1] = (1.0 - minf(1.0 - ikstretch, 1.0f - 0.001f));
                        weights.push_back(weight[1]);
                }
                if (!ret)