From 29267b58d33b15b3981a33597979ab5c7fd0ea64 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 26 Aug 2022 21:04:13 +0800 Subject: [PATCH] Fix the export_3mf failed issue caused by filename Change-Id: I54709b9f92af34c9459f2befb68759ee6d03d85b --- src/slic3r/GUI/Plater.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 2e5253bec..70bb83460 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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()) {