mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Fix of [BUG]Environment variables not all exported while calling Post-Processing Scripts #4901
This commit is contained in:
parent
fe18ce16fb
commit
b909ce7a3d
3 changed files with 9 additions and 6 deletions
|
@ -185,7 +185,7 @@ void BackgroundSlicingProcess::process_fff()
|
|||
break;
|
||||
}
|
||||
m_print->set_status(95, _utf8(L("Running post-processing scripts")));
|
||||
run_post_process_scripts(export_path, m_fff_print->config());
|
||||
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());
|
||||
} else if (! m_upload_job.empty()) {
|
||||
wxQueueEvent(GUI::wxGetApp().mainframe->m_plater, new wxCommandEvent(m_event_export_began_id));
|
||||
|
@ -538,7 +538,7 @@ void BackgroundSlicingProcess::prepare_upload()
|
|||
if (copy_file(m_temp_output_path, source_path.string(), error_message) != SUCCESS) {
|
||||
throw Slic3r::RuntimeError(_utf8(L("Copying of the temporary G-code to the output G-code failed")));
|
||||
}
|
||||
run_post_process_scripts(source_path.string(), m_fff_print->config());
|
||||
run_post_process_scripts(source_path.string(), m_fff_print->full_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_upload_job.upload_data.upload_path = m_sla_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue