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