Bug fix:
On texture-space transform, pressing Rkey crashed. Now it refuses to enter rotation mode. :)
This commit is contained in:
@@ -607,20 +607,22 @@ int transformEvent(TransInfo *t, wmEvent *event)
|
||||
break;
|
||||
case TFM_MODAL_ROTATE:
|
||||
/* only switch when... */
|
||||
if( ELEM4(t->mode, TFM_ROTATION, TFM_RESIZE, TFM_TRACKBALL, TFM_TRANSLATION) ) {
|
||||
|
||||
resetTransRestrictions(t);
|
||||
|
||||
if (t->mode == TFM_ROTATION) {
|
||||
restoreTransObjects(t);
|
||||
initTrackball(t);
|
||||
if(!(t->options & CTX_TEXTURE)) {
|
||||
if( ELEM4(t->mode, TFM_ROTATION, TFM_RESIZE, TFM_TRACKBALL, TFM_TRANSLATION) ) {
|
||||
|
||||
resetTransRestrictions(t);
|
||||
|
||||
if (t->mode == TFM_ROTATION) {
|
||||
restoreTransObjects(t);
|
||||
initTrackball(t);
|
||||
}
|
||||
else {
|
||||
restoreTransObjects(t);
|
||||
initRotation(t);
|
||||
}
|
||||
initSnapping(t, NULL); // need to reinit after mode change
|
||||
t->redraw |= TREDRAW_HARD;
|
||||
}
|
||||
else {
|
||||
restoreTransObjects(t);
|
||||
initRotation(t);
|
||||
}
|
||||
initSnapping(t, NULL); // need to reinit after mode change
|
||||
t->redraw |= TREDRAW_HARD;
|
||||
}
|
||||
break;
|
||||
case TFM_MODAL_RESIZE:
|
||||
|
||||
Reference in New Issue
Block a user