diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-17 15:21:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-17 15:21:38 +0300 |
commit | b9da824821a8ba3edce214f1573e9299ec0dd72a (patch) | |
tree | b7f0a1396f2e98643d7b4ce2ee1e43daf3bfd029 /source/blender | |
parent | 779078000603881d20c944dc0f8b101a07f6b751 (diff) |
[#21197] change layer of just linked in objects lets them vanish
missing undo push in file selector.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index a17219c48cd..4b07aa82239 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1208,6 +1208,10 @@ static int wm_handler_fileselect_call(bContext *C, ListBase *handlers, wmEventHa if(G.f & G_DEBUG) wm_operator_print(handler->op); + if(wm->op_undo_depth == 0) + if(handler->op->type->flag & OPTYPE_UNDO) + ED_undo_push_op(C, handler->op); + if(handler->op->reports->list.first) { /* FIXME, temp setting window, this is really bad! |