From c5f4b535559ea7499e4f7c7fd6bf9736fac587f8 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 17 Apr 2025 18:48:16 +0500 Subject: [PATCH] bim.export_cost_schedules - fix bug with overridden prop value E.g. if you would call this operator for 1 specific cost schedule, Blender would remember it's value and would keep on using it even if operator is going to be called outside this schedule --- src/bonsai/bonsai/bim/module/cost/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/cost/operator.py b/src/bonsai/bonsai/bim/module/cost/operator.py index 0da7123f1c..db64860598 100644 --- a/src/bonsai/bonsai/bim/module/cost/operator.py +++ b/src/bonsai/bonsai/bim/module/cost/operator.py @@ -690,7 +690,7 @@ class ExportCostSchedules(bpy.types.Operator, ExportHelper): bl_options = {"REGISTER", "UNDO"} bl_description = "Export current/all cost schedules as CSV, XSLX or ODS files to the provided directory." - cost_schedule: bpy.props.IntProperty() + cost_schedule: bpy.props.IntProperty(options={"SKIP_SAVE"}) format: bpy.props.EnumProperty(name="Format", items=(("CSV", "CSV", ""), ("XLSX", "XLSX", ""), ("ODS", "ODS", ""))) directory: bpy.props.StringProperty(subtype="FILE_PATH") filter_folder: bpy.props.BoolProperty(