diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-30 12:24:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-30 12:48:15 +0300 |
commit | 8d2576fd295fc67e2b70c282117928173ec1af8a (patch) | |
tree | ca3ff57fff108f282dad8484e77856a5b141ee08 /source/blender/windowmanager/intern/wm_event_system.c | |
parent | 3624c0600747d9ebde1d55f1811f810ba08c6d17 (diff) |
Undo System: support for grouping steps with begin/end calls
This adds support for treating multiple undo steps as a single step
from the user perspective.
This is needed for outliner mode switching and `object.switch_object`
operator which change active object and mode in a single action.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 8eb9a3b0650..8f141a8e23b 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -3159,6 +3159,7 @@ static void wm_event_free_and_remove_from_queue_if_valid(wmEvent *event) void wm_event_do_handlers(bContext *C) { wmWindowManager *wm = CTX_wm_manager(C); + BLI_assert(ED_undo_is_state_valid(C)); /* Update key configuration before handling events. */ WM_keyconfig_update(wm); |