From 74190f255b6dab788b33d2dfb6341ff2bdfd9a74 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 3 Feb 2010 11:09:47 +0000 Subject: [PATCH] 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. --- source/blender/blenkernel/intern/armature.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index ca7d1b7e77a..96607a4732b 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -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);