Bugfix, irc report
After using loop-cut with multiple edges, transform widget disappeared. Reason was a variable being set in function not being called on cancelled operators. Now it's in Posttrans()
This commit is contained in:
@@ -5122,16 +5122,6 @@ void special_aftertrans_update(bContext *C, TransInfo *t)
|
||||
|
||||
clear_trans_object_base_flags(t);
|
||||
|
||||
if(t->spacetype == SPACE_VIEW3D)
|
||||
{
|
||||
View3D *v3d = t->view;
|
||||
|
||||
/* restore manipulator */
|
||||
if (t->flag & T_MODAL) {
|
||||
v3d->twtype = t->twtype;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if 0 // TRANSFORM_FIX_ME
|
||||
if(resetslowpar)
|
||||
|
||||
@@ -1159,6 +1159,13 @@ void postTrans (bContext *C, TransInfo *t)
|
||||
if(sima->flag & SI_LIVE_UNWRAP)
|
||||
ED_uvedit_live_unwrap_end(t->state == TRANS_CANCEL);
|
||||
}
|
||||
else if(t->spacetype==SPACE_VIEW3D) {
|
||||
View3D *v3d = t->sa->spacedata.first;
|
||||
/* restore manipulator */
|
||||
if (t->flag & T_MODAL) {
|
||||
v3d->twtype = t->twtype;
|
||||
}
|
||||
}
|
||||
|
||||
if (t->mouse.data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user