Spline IK: Small tweak improving (but not completely solving) the situation for bug #20708

The best workaround for problems with SplineIK applied to a chain of BBones so far is to disable 'Chain Offset'. Hopefully this workaround will soon become irrelevant.
This commit is contained in:
2010-02-03 11:09:47 +00:00
parent ba4cf7bf0c
commit 74190f255b
+2 -4
View File
@@ -2028,11 +2028,9 @@ static void splineik_evaluate_bone(tSplineIK_Tree *tree, Scene *scene, Object *o
* the shape but be moved elsewhere
*/
if (ikData->flag & CONSTRAINT_SPLINEIK_NO_ROOT) {
VECCOPY(poseMat[3], pchan->pose_head);
}
else {
VECCOPY(poseMat[3], poseHead);
VECCOPY(poseHead, pchan->pose_head);
}
VECCOPY(poseMat[3], poseHead);
/* finally, store the new transform */
copy_m4_m4(pchan->pose_mat, poseMat);