The default filepath is now based on the name of the active object

This commit is contained in:
Colin Basnett
2024-07-22 01:31:00 -07:00
parent 0dd55e46a7
commit 438e332c36

View File

@@ -134,6 +134,8 @@ class ASE_OT_export(Operator, ExportHelper):
pg = getattr(context.scene, 'ase_export') pg = getattr(context.scene, 'ase_export')
populate_material_list(mesh_objects, pg.material_list) populate_material_list(mesh_objects, pg.material_list)
self.filepath = f'{context.active_object.name}.ase'
context.window_manager.fileselect_add(self) context.window_manager.fileselect_add(self)
return {'RUNNING_MODAL'} return {'RUNNING_MODAL'}