From e3de9c3ea49761c8eaf2bb9e8ffc7550bb7eeab8 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 6 Nov 2024 14:37:19 +0500 Subject: [PATCH] bim.set_tab / bim.switch_tab not to create undo steps To avoid unnecessary steps in undo history like on the screenshot - https://i.imgur.com/vEpsYa5.png --- src/bonsai/bonsai/bim/operator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/operator.py b/src/bonsai/bonsai/bim/operator.py index 1dd01d8563..d23e856d49 100644 --- a/src/bonsai/bonsai/bim/operator.py +++ b/src/bonsai/bonsai/bim/operator.py @@ -48,7 +48,7 @@ class SetTab(bpy.types.Operator): # NOTE: bl_label is set to empty string intentionally # to avoid showing the operator's name in the tooltips, see #3704 bl_label = "" - bl_options = {"REGISTER", "UNDO", "INTERNAL"} + bl_options = {"INTERNAL"} tab: bpy.props.StringProperty() @classmethod @@ -67,7 +67,7 @@ class SetTab(bpy.types.Operator): class SwitchTab(bpy.types.Operator): bl_idname = "bim.switch_tab" bl_label = "Switch Tab" - bl_options = {"REGISTER", "UNDO"} + bl_options = set() bl_description = "Switches to the last used tab" def execute(self, context):