Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-30 12:24:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-30 12:50:27 +0300
commit9ab4536218d742351095181bb3f93d24491e6380 (patch)
tree6b5906cfec4b1bad873fdb52d4b164251ec43608 /source/blender/editors/space_outliner/outliner_draw.c
parent3cc6b423b12b8c412892782928203c16b77be932 (diff)
Outliner: use undo-group for outliner mode switching
Switching modes no longer adds multiple undo steps from a user perspective.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c2
1 files changed, 2 insertions, 0 deletions
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"));