Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-02-03 14:09:47 +0300
committerJoshua Leung <aligorith@gmail.com>2010-02-03 14:09:47 +0300
commit74190f255b6dab788b33d2dfb6341ff2bdfd9a74 (patch)
treedccc3acb537383dee45d17d7c34eb3ca971ea262 /source/blender/blenkernel/intern
parentba4cf7bf0c32b713948308a80d78df6ddb07b87a (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/armature.c6
1 files 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);