Merge pull request #6000 from xorza/postprocessing_moved_to_temp_dir
Postprocessing moved to temp dir
This commit is contained in:
commit
eaf6e0dca7
@ -149,6 +149,10 @@ void BackgroundSlicingProcess::process_fff()
|
|||||||
if (this->set_step_started(bspsGCodeFinalize)) {
|
if (this->set_step_started(bspsGCodeFinalize)) {
|
||||||
if (! m_export_path.empty()) {
|
if (! m_export_path.empty()) {
|
||||||
wxQueueEvent(GUI::wxGetApp().mainframe->m_plater, new wxCommandEvent(m_event_export_began_id));
|
wxQueueEvent(GUI::wxGetApp().mainframe->m_plater, new wxCommandEvent(m_event_export_began_id));
|
||||||
|
|
||||||
|
m_print->set_status(95, _utf8(L("Running post-processing scripts")));
|
||||||
|
run_post_process_scripts(m_temp_output_path, m_fff_print->full_print_config());
|
||||||
|
|
||||||
//FIXME localize the messages
|
//FIXME localize the messages
|
||||||
// Perform the final post-processing of the export path by applying the print statistics over the file name.
|
// Perform the final post-processing of the export path by applying the print statistics over the file name.
|
||||||
std::string export_path = m_fff_print->print_statistics().finalize_output_path(m_export_path);
|
std::string export_path = m_fff_print->print_statistics().finalize_output_path(m_export_path);
|
||||||
@ -184,8 +188,7 @@ void BackgroundSlicingProcess::process_fff()
|
|||||||
BOOST_LOG_TRIVIAL(error) << "Unexpected fail code(" << (int)copy_ret_val << ") durring copy_file() to " << export_path << ".";
|
BOOST_LOG_TRIVIAL(error) << "Unexpected fail code(" << (int)copy_ret_val << ") durring copy_file() to " << export_path << ".";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_print->set_status(95, _utf8(L("Running post-processing scripts")));
|
|
||||||
run_post_process_scripts(export_path, m_fff_print->full_print_config());
|
|
||||||
m_print->set_status(100, (boost::format(_utf8(L("G-code file exported to %1%"))) % export_path).str());
|
m_print->set_status(100, (boost::format(_utf8(L("G-code file exported to %1%"))) % export_path).str());
|
||||||
} else if (! m_upload_job.empty()) {
|
} else if (! m_upload_job.empty()) {
|
||||||
wxQueueEvent(GUI::wxGetApp().mainframe->m_plater, new wxCommandEvent(m_event_export_began_id));
|
wxQueueEvent(GUI::wxGetApp().mainframe->m_plater, new wxCommandEvent(m_event_export_began_id));
|
||||||
|
Loading…
Reference in New Issue
Block a user