Remove hardcoded selection

use selected_objects argument of exporter
This commit is contained in:
s-leger
2020-04-09 02:46:38 +02:00
committed by GitHub
parent abbaef459b
commit f59f017bde
@@ -57,7 +57,7 @@ class ExportIFC(bpy.types.Operator):
qto_calculator = export_ifc.QtoCalculator()
ifc_exporter = export_ifc.IfcExporter(ifc_export_settings, ifc_parser, qto_calculator)
ifc_export_settings.logger.info('Starting export')
ifc_exporter.export()
ifc_exporter.export(context.selected_objects)
ifc_export_settings.logger.info('Export finished in {:.2f} seconds'.format(time.time() - start))
return {'FINISHED'}