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:
2010-12-16 17:19:24 +00:00
parent f7c60cab96
commit e836d2a169
2 changed files with 7 additions and 10 deletions

View File

@@ -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)

View File

@@ -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)
{