The default filepath is now based on the name of the active object
This commit is contained in:
@@ -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'}
|
||||||
|
|||||||
Reference in New Issue
Block a user