mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
If you are already authoring a file, exporting now no longer prompts for a file location.
This commit is contained in:
@@ -69,6 +69,9 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
|
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
|
||||||
|
|
||||||
def invoke(self, context, event):
|
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:
|
if not self.filepath:
|
||||||
self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".ifc")
|
self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".ifc")
|
||||||
WindowManager = context.window_manager
|
WindowManager = context.window_manager
|
||||||
|
|||||||
Reference in New Issue
Block a user