Fix the export_3mf failed issue caused by filename
Change-Id: I54709b9f92af34c9459f2befb68759ee6d03d85b
This commit is contained in:
parent
c7b698f4f1
commit
29267b58d3
1 changed files with 5 additions and 1 deletions
|
@ -8033,8 +8033,12 @@ void Plater::export_gcode_3mf()
|
|||
GUI::file_wildcards(FT_3MF, ext),
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT
|
||||
);
|
||||
if (dlg.ShowModal() == wxID_OK)
|
||||
if (dlg.ShowModal() == wxID_OK) {
|
||||
output_path = into_path(dlg.GetPath());
|
||||
ext = output_path.extension().string();
|
||||
if (ext != ".3mf")
|
||||
output_path = output_path.string() + ".3mf";
|
||||
}
|
||||
}
|
||||
|
||||
if (!output_path.empty()) {
|
||||
|
|
Loading…
Reference in a new issue