From 35ad7e16c6284ba7cb28eb1f4b1f90155e90b4fc Mon Sep 17 00:00:00 2001 From: Trashman247 Date: Sat, 8 Apr 2023 10:59:59 -0700 Subject: [PATCH] Reformat parametrized "Save" in IFC project --- src/blenderbim/blenderbim/bim/module/project/operator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/project/operator.py b/src/blenderbim/blenderbim/bim/module/project/operator.py index 97700c88c6..9beebd3b47 100644 --- a/src/blenderbim/blenderbim/bim/module/project/operator.py +++ b/src/blenderbim/blenderbim/bim/module/project/operator.py @@ -819,7 +819,7 @@ class ExportIFC(bpy.types.Operator): json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False) should_save_as: bpy.props.BoolProperty(name="Should Save As", default=False) use_relative_path: bpy.props.BoolProperty(name="Use Relative Path", default=False) - + def invoke(self, context, event): if not IfcStore.get_file(): self.report({"ERROR"}, "No IFC project is available for export - create or import a project first.") @@ -893,10 +893,10 @@ class ExportIFC(bpy.types.Operator): @classmethod def description(cls, context, properties): - if properties.should_save_as == False: - return "Export the IFC project to this file" - else: + if properties.should_save_as: return "Export the IFC project to a selected file" + else: + return "Export the IFC project to this file" class ImportIFC(bpy.types.Operator):