mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 22:50:56 +00:00
Fix #5334. Bug where the wrong type would be added if you added a new type then switched tool.
This commit is contained in:
@@ -117,8 +117,8 @@ class AddConstrTypeInstance(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
bl_label = "Add"
|
bl_label = "Add"
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
bl_description = "Add Type Instance to the model"
|
bl_description = "Add Type Instance to the model"
|
||||||
relating_type_id: bpy.props.IntProperty()
|
relating_type_id: bpy.props.IntProperty(default=0, options={"SKIP_SAVE"})
|
||||||
from_invoke: bpy.props.BoolProperty(default=False)
|
from_invoke: bpy.props.BoolProperty(default=False, options={"SKIP_SAVE"})
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
return self.execute(context)
|
return self.execute(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user