From 2626165629f99e8bca5ea94782099a1b3fde88bc Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sat, 7 Sep 2024 21:13:56 +1000 Subject: [PATCH] Fix #5334. Bug where the wrong type would be added if you added a new type then switched tool. --- src/bonsai/bonsai/bim/module/model/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/model/product.py b/src/bonsai/bonsai/bim/module/model/product.py index 5f6e35773b..12e376a46c 100644 --- a/src/bonsai/bonsai/bim/module/model/product.py +++ b/src/bonsai/bonsai/bim/module/model/product.py @@ -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)