Move bug fix hack so it acts only when it needs too.

It was showing "global axis" even when using MMB to access user defined orientation (with Ctrl).
This commit is contained in:
2005-12-19 16:32:18 +00:00
parent bcd8e4aad8
commit a96bf9283a

View File

@@ -495,13 +495,14 @@ static void transformEvent(unsigned short event, short val) {
stopConstraint(&Trans);
}
else {
/* bit hackish... but it prevents mmb select to print the orientation from menu */
strcpy(Trans.spacename, "global");
if (G.qual & LR_CTRLKEY)
if (G.qual & LR_CTRLKEY) {
initSelectConstraint(&Trans, Trans.spacemtx);
else
}
else {
/* bit hackish... but it prevents mmb select to print the orientation from menu */
strcpy(Trans.spacename, "global");
initSelectConstraint(&Trans, mati);
}
postSelectConstraint(&Trans);
}
}