Fix T78826: Move constraint is not fully disabled

Caused by rB45f17e10ec50
This commit is contained in:
Germano Cavalcante 2020-07-29 09:09:34 -03:00
parent 3e82500509
commit 84f7de432c
Notes: blender-bot 2023-02-14 11:28:43 +01:00
Referenced by issue #78826, Error disabling axis lock on grab in object mode
1 changed files with 6 additions and 4 deletions

View File

@ -510,10 +510,12 @@ static void applyObjectConstraintVec(
else {
/* Specific TransData's space. */
copy_v3_v3(out, in);
mul_m3_v3(t->spacemtx_inv, out);
mul_m3_v3(td->axismtx, out);
if (t->flag & T_EDIT) {
mul_m3_v3(tc->mat3_unit, out);
if (t->con.mode & CON_APPLY) {
mul_m3_v3(t->spacemtx_inv, out);
mul_m3_v3(td->axismtx, out);
if (t->flag & T_EDIT) {
mul_m3_v3(tc->mat3_unit, out);
}
}
}
}