mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed empty filename when trying to export a plate where no object is selected and no object is printable
This commit is contained in:
parent
40e5fb5bb9
commit
355a7d6a8c
1 changed files with 4 additions and 0 deletions
|
@ -2518,6 +2518,10 @@ wxString Plater::priv::get_export_file(GUI::FileType file_type)
|
||||||
if (output_file.empty())
|
if (output_file.empty())
|
||||||
// Find the file name of the first printable object.
|
// Find the file name of the first printable object.
|
||||||
output_file = this->model.propose_export_file_name_and_path();
|
output_file = this->model.propose_export_file_name_and_path();
|
||||||
|
|
||||||
|
if (output_file.empty() && !model.objects.empty())
|
||||||
|
// Find the file name of the first object.
|
||||||
|
output_file = this->model.objects[0]->get_export_filename();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString dlg_title;
|
wxString dlg_title;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue