diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 08:21:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 08:26:36 +0300 |
commit | 51d6d1d8fbae1eaef2c9dc22bbb01c4da59ab5d3 (patch) | |
tree | 34678d64a9714106db68479184959a40ef038263 /source | |
parent | 165a83345aafe61d5faab472475e8201d9d19dcf (diff) |
WM: fix non-undo operators stealing redo panel
Non-undo actions would move the redo panel into a different space.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 467328fc053..9007b941057 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -909,8 +909,10 @@ static void wm_operator_finished(bContext *C, wmOperator *op, const bool repeat, wm_operator_register(C, op); WM_operator_region_active_win_set(C); - /* Show the redo panel. */ - hud_status = SET; + if (WM_operator_last_redo(C) == op) { + /* Show the redo panel. */ + hud_status = SET; + } } else { WM_operator_free(op); |