From 25e303493e19d3bf08477e4a48a66e411d0f78e6 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 12 Feb 2020 18:24:48 +0100 Subject: [PATCH] Revert c55173eb as it breaks features. Output file name is not picked up in the SLA export file dialog. --- src/libslic3r/SLAPrint.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp index ebe7b7402..06c4f687b 100644 --- a/src/libslic3r/SLAPrint.cpp +++ b/src/libslic3r/SLAPrint.cpp @@ -597,9 +597,7 @@ void SLAPrint::finalize() std::string SLAPrint::output_filename(const std::string &filename_base) const { DynamicConfig config = this->finished() ? this->print_statistics().config() : this->print_statistics().placeholders(); - // we need to remove the extension from the format string or the following call to PrintBase::output_filename() won't be able to change it to ".sl1" - std::string format = boost::filesystem::path(m_print_config.output_filename_format.value).replace_extension("").string(); - return this->PrintBase::output_filename(format, ".sl1", filename_base, &config); + return this->PrintBase::output_filename(m_print_config.output_filename_format.value, ".sl1", filename_base, &config); } std::string SLAPrint::validate() const