forked from bartvdbraak/blender
Fix compile error, IK_STRETCH_STIFF_EPS was undefined.
This commit is contained in:
parent
7217927414
commit
3151a9f145
@ -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]);
|
ret = arm->addSegment(joint, parent, KDL::Joint::TransY, rot[ikchan->ndof - 1]);
|
||||||
const float ikstretch = pchan->ikstretch * pchan->ikstretch;
|
const float ikstretch = pchan->ikstretch * pchan->ikstretch;
|
||||||
/* why invert twice here? */
|
/* 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]);
|
weights.push_back(weight[1]);
|
||||||
}
|
}
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user