Transform: use scene-orientation for MMB axis constraint
Follows the change made for axis keys.
This commit is contained in:
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"
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue