ENH:modify file name rules when export stl
Jira: STUDIO-6091 Change-Id: Ic27e4e341cc09099e98a5eab7dfd48416f2922ae
This commit is contained in:
parent
3b4e2a0afd
commit
741aeffe0d
|
@ -4353,7 +4353,14 @@ fs::path Plater::priv::get_export_file_path(GUI::FileType file_type)
|
|||
if (file_type == FT_3MF)
|
||||
// for 3mf take the path from the project filename, if any
|
||||
output_file = into_path(get_project_filename(".3mf"));
|
||||
|
||||
else if (file_type == FT_STL) {
|
||||
if (obj_idx > 0 && obj_idx < this->model.objects.size() && selection.is_single_full_object()) {
|
||||
output_file = this->model.objects[obj_idx]->get_export_filename();
|
||||
}
|
||||
else {
|
||||
output_file = into_path(get_project_name());
|
||||
}
|
||||
}
|
||||
//bbs name the project using the part name
|
||||
if (output_file.empty()) {
|
||||
if (get_project_name() != _L("Untitled")) {
|
||||
|
|
Loading…
Reference in New Issue