Fix the export_3mf failed issue caused by filename

Change-Id: I54709b9f92af34c9459f2befb68759ee6d03d85b
This commit is contained in:
lane.wei 2022-08-26 21:04:13 +08:00 committed by Lane.Wei
parent c7b698f4f1
commit 29267b58d3

View file

@ -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()) {