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:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-04-14 15:50:49 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-04-14 15:50:57 +0300
commitb42ae4b972a6ec8340f763b811663f9c08fb17c6 (patch)
tree1b8849aa9f531e206e9fc733dedb4a717db88dfe /source/blender/blenkernel
parent1d70b9009b5deba1b56dee124fcfacd88bcc6c08 (diff)
Fix T61981: Local With Parent broken as constraint own space.
Specifically, matrix multiplication order in Local With Parent to Pose space conversion was wrong, compared with Pose to LWP.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/constraint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index e8a4983528e..59a374d5e88 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -319,8 +319,7 @@ void BKE_constraint_mat_convertspace(
{
/* local + parent to pose */
if (pchan->bone) {
- copy_m4_m4(diff_mat, pchan->bone->arm_mat);
- mul_m4_m4m4(mat, mat, diff_mat);
+ mul_m4_m4m4(mat, pchan->bone->arm_mat, mat);
}
/* use pose-space as stepping stone for other spaces */