mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
Exporting now sets the IFC file if unset for convenience
This commit is contained in:
@@ -109,6 +109,8 @@ class ExportIFC(bpy.types.Operator):
|
||||
if not bpy.context.scene.DocProperties.ifc_files:
|
||||
new = bpy.context.scene.DocProperties.ifc_files.add()
|
||||
new.name = output_file
|
||||
if not bpy.context.scene.BIMProperties.ifc_file:
|
||||
bpy.context.scene.BIMProperties.ifc_file = output_file
|
||||
return {'FINISHED'}
|
||||
|
||||
class ImportIFC(bpy.types.Operator, ImportHelper):
|
||||
|
||||
Reference in New Issue
Block a user