Fix T77183: Axis moves with object when constraint movement and using local transform

This commit is contained in:
Germano Cavalcante 2020-05-30 11:10:07 -03:00
parent 3d014fa815
commit a574478d90
Notes: blender-bot 2023-02-14 11:34:30 +01:00
Referenced by issue #77183, Axis moves with object when othro-locking movement and using local transform.
1 changed files with 1 additions and 5 deletions

View File

@ -829,11 +829,7 @@ static void drawObjectConstraint(TransInfo *t)
}
}
if (t->flag & T_OBJECT) {
copy_v3_v3(co, td->ob->obmat[3]);
axismtx = td->axismtx;
}
else if (t->flag & T_EDIT) {
if (t->flag & T_EDIT) {
mul_v3_m4v3(co, tc->mat, td->center);
mul_m3_m3m3(tmp_axismtx, tc->mat3_unit, td->axismtx);