From 9ab4536218d742351095181bb3f93d24491e6380 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 30 Oct 2020 20:24:18 +1100 Subject: Outliner: use undo-group for outliner mode switching Switching modes no longer adds multiple undo steps from a user perspective. --- source/blender/editors/space_outliner/outliner_draw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_outliner/outliner_draw.c') diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 5a789ee0b01..d961813d04a 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -2013,6 +2013,8 @@ static void outliner_draw_mode_column_toggle(uiBlock *block, tip); UI_but_func_set(but, outliner_mode_toggle_fn, tselem, NULL); UI_but_flag_enable(but, UI_BUT_DRAG_LOCK); + /* Mode toggling handles it's own undo state because undo steps need to be grouped. */ + UI_but_flag_disable(but, UI_BUT_UNDO); if (ID_IS_LINKED(&ob->id)) { UI_but_disable(but, TIP_("Can't edit external library data")); -- cgit v1.2.3