diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-16 20:19:24 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-16 20:19:24 +0300 |
commit | e836d2a1695cdcaf5bfdb01b6bebd663b977bf28 (patch) | |
tree | 9538e92b67566c9ad0a521832128b109cab5e0ee /source/blender/editors | |
parent | f7c60cab96146dbf7ebf0ddac9d55432afc5b37c (diff) |
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()
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 10 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 7 |
2 files changed, 7 insertions, 10 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index d545acfb93a..4784f47218f 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -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) diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 8b47fbd5b4c..7dbc0b9c633 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -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) { |