From 3151a9f145ea5f2920426f28dada76a9e537719e Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sun, 29 Jul 2012 19:50:03 +0000 Subject: [PATCH] Fix compile error, IK_STRETCH_STIFF_EPS was undefined. --- source/blender/ikplugin/intern/itasc_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp index 516a4c7fdda..7a53fe247fe 100644 --- a/source/blender/ikplugin/intern/itasc_plugin.cpp +++ b/source/blender/ikplugin/intern/itasc_plugin.cpp @@ -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)