Transform: use scene-orientation for MMB axis constraint

Follows the change made for axis keys.
This commit is contained in:
Campbell Barton 2018-11-28 19:48:19 +11:00
parent 7ecdcfe173
commit 78a6c2e12c
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by commit 4f997c0ebb, Revert "Transform: use scene-orientation for MMB axis constraint"
1 changed files with 1 additions and 10 deletions

View File

@ -1371,16 +1371,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
stopConstraint(t);
}
else {
if (event->shift) {
initSelectConstraint(t, t->spacemtx);
}
else {
/* bit hackish... but it prevents mmb select to print the orientation from menu */
float mati[3][3];
strcpy(t->spacename, "global");
unit_m3(mati);
initSelectConstraint(t, mati);
}
initSelectConstraint(t, t->spacemtx);
postSelectConstraint(t);
}
}