mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user