mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +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
|
# NOTE: bl_label is set to empty string intentionally
|
||||||
# to avoid showing the operator's name in the tooltips, see #3704
|
# to avoid showing the operator's name in the tooltips, see #3704
|
||||||
bl_label = ""
|
bl_label = ""
|
||||||
bl_options = {"REGISTER", "UNDO", "INTERNAL"}
|
bl_options = {"INTERNAL"}
|
||||||
tab: bpy.props.StringProperty()
|
tab: bpy.props.StringProperty()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -67,7 +67,7 @@ class SetTab(bpy.types.Operator):
|
|||||||
class SwitchTab(bpy.types.Operator):
|
class SwitchTab(bpy.types.Operator):
|
||||||
bl_idname = "bim.switch_tab"
|
bl_idname = "bim.switch_tab"
|
||||||
bl_label = "Switch Tab"
|
bl_label = "Switch Tab"
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = set()
|
||||||
bl_description = "Switches to the last used tab"
|
bl_description = "Switches to the last used tab"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user