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
This commit is contained in:
Andrej730
2024-11-06 14:37:19 +05:00
parent c594bc2c1a
commit e3de9c3ea4
+2 -2
View File
@@ -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):