mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix adding parametric geometry operators missing undo step
This also seems to by accident resolve #5565 🤨🤨🤨
This commit is contained in:
@@ -546,7 +546,7 @@ class AddDoor(bpy.types.Operator, tool.Ifc.Operator):
|
||||
bl_idname = "bim.add_door"
|
||||
bl_label = "Add Door"
|
||||
bl_description = "Add Bonsai parametric door to the active IFC element"
|
||||
bl_options = {"REGISTER"}
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
|
||||
@@ -327,7 +327,7 @@ class AddRailing(bpy.types.Operator, tool.Ifc.Operator):
|
||||
bl_idname = "bim.add_railing"
|
||||
bl_label = "Add Railing"
|
||||
bl_description = "Add Bonsai parametric railing to the active IFC element"
|
||||
bl_options = {"REGISTER"}
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
|
||||
@@ -551,7 +551,7 @@ class AddRoof(bpy.types.Operator, tool.Ifc.Operator):
|
||||
bl_idname = "bim.add_roof"
|
||||
bl_label = "Add Roof"
|
||||
bl_description = "Add Bonsai parametric roof to the active IFC element"
|
||||
bl_options = {"REGISTER"}
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
|
||||
@@ -178,7 +178,7 @@ class AddStair(bpy.types.Operator, tool.Ifc.Operator):
|
||||
bl_idname = "bim.add_stair"
|
||||
bl_label = "Add Stair"
|
||||
bl_description = "Add Bonsai parametric stair to the active IFC element"
|
||||
bl_options = {"REGISTER"}
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
|
||||
@@ -433,7 +433,7 @@ class AddWindow(bpy.types.Operator, tool.Ifc.Operator):
|
||||
bl_idname = "bim.add_window"
|
||||
bl_label = "Add Window"
|
||||
bl_description = "Add Bonsai parametric window to the active IFC element"
|
||||
bl_options = {"REGISTER"}
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def _execute(self, context):
|
||||
obj = context.active_object
|
||||
|
||||
Reference in New Issue
Block a user