Commit: b42ae4b972a6ec8340f763b811663f9c08fb17c6
Author: Alexander Gavrilov
Date:   Sun Apr 14 15:50:49 2019 +0300
Branches: master
https://developer.blender.org/rBb42ae4b972a6ec8340f763b811663f9c08fb17c6

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.

===================================================================

M       source/blender/blenkernel/intern/constraint.c

===================================================================

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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to