If you are already authoring a file, exporting now no longer prompts for a file location.

This commit is contained in:
Dion Moult
2021-04-18 20:17:45 +10:00
parent 01cfcebb09
commit 8187c75183
@@ -69,6 +69,9 @@ class ExportIFC(bpy.types.Operator):
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
def invoke(self, context, event):
if bpy.context.scene.BIMProperties.ifc_file:
self.filepath = bpy.context.scene.BIMProperties.ifc_file
return self.execute(context)
if not self.filepath:
self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".ifc")
WindowManager = context.window_manager