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.
This commit is contained in:
2019-04-14 15:50:49 +03:00
parent 1d70b9009b
commit b42ae4b972

View File

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