From 46709c92cd023f3860350b8242617bc794d743a9 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 29 Jan 2019 08:57:00 +0100 Subject: [PATCH] Fix of OcctoPrint using Post Processor does not work #1731 --- src/slic3r/GUI/BackgroundSlicingProcess.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/slic3r/GUI/BackgroundSlicingProcess.cpp b/src/slic3r/GUI/BackgroundSlicingProcess.cpp index 4ef020bf8..463be8397 100644 --- a/src/slic3r/GUI/BackgroundSlicingProcess.cpp +++ b/src/slic3r/GUI/BackgroundSlicingProcess.cpp @@ -437,12 +437,10 @@ void BackgroundSlicingProcess::prepare_upload() if (m_print == m_fff_print) { m_print->set_status(95, "Running post-processing scripts"); - run_post_process_scripts(source_path.string(), m_fff_print->config()); - if (copy_file(m_temp_output_path, source_path.string()) != 0) { throw std::runtime_error("Copying of the temporary G-code to the output G-code failed"); } - + run_post_process_scripts(source_path.string(), m_fff_print->config()); m_upload_job.upload_data.upload_path = m_fff_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string()); } else { m_sla_print->export_raster(source_path.string());