Fix #5334. Bug where the wrong type would be added if you added a new type then switched tool.

This commit is contained in:
Dion Moult
2024-09-07 21:13:56 +10:00
parent 0a17588db8
commit 2626165629
@@ -117,8 +117,8 @@ class AddConstrTypeInstance(bpy.types.Operator, tool.Ifc.Operator):
bl_label = "Add"
bl_options = {"REGISTER", "UNDO"}
bl_description = "Add Type Instance to the model"
relating_type_id: bpy.props.IntProperty()
from_invoke: bpy.props.BoolProperty(default=False)
relating_type_id: bpy.props.IntProperty(default=0, options={"SKIP_SAVE"})
from_invoke: bpy.props.BoolProperty(default=False, options={"SKIP_SAVE"})
def invoke(self, context, event):
return self.execute(context)