Reformat parametrized "Save" in IFC project

This commit is contained in:
Trashman247
2023-04-08 10:59:59 -07:00
parent 69b74cb4c5
commit ab02ac3dda
@@ -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):