Fix adding parametric geometry operators missing undo step

This also seems to by accident resolve #5565 🤨🤨🤨
This commit is contained in:
Andrej730
2024-10-16 17:29:24 +05:00
parent a7efdb0bff
commit 903e673984
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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