mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Follow-up of 00ecafe3d5
-> Fix of #3650 moved into 'SLAPrint::output_filename()' as the previous fix was breaking the export from GUI
This commit is contained in:
parent
00ecafe3d5
commit
c55173eba4
2 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,7 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
|
|||
boost::filesystem::path filename = format.empty() ?
|
||||
cfg.opt_string("input_filename_base") + default_ext :
|
||||
this->placeholder_parser().process(format, 0, &cfg);
|
||||
if (filename.extension().string() != default_ext)
|
||||
if (filename.extension().empty())
|
||||
filename = boost::filesystem::change_extension(filename, default_ext);
|
||||
return filename.string();
|
||||
} catch (std::runtime_error &err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue