mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:25:59 +08:00
Merge remote-tracking branch 'origin/master' into tm_colldetection_upgr
This commit is contained in:
commit
17a1f829cd
@ -85,6 +85,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
if(NOT WIN32)
|
||||||
|
# Add DEBUG flags for the debug builds in a way the Visual Studio adds these flags.
|
||||||
|
add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>")
|
||||||
|
add_compile_options("$<$<CONFIG:DEBUG>:-D_DEBUG>")
|
||||||
|
endif()
|
||||||
|
|
||||||
# To be able to link libslic3r with the Perl XS module.
|
# To be able to link libslic3r with the Perl XS module.
|
||||||
# Once we get rid of Perl and libslic3r is linked statically, we can get rid of -fPIC
|
# Once we get rid of Perl and libslic3r is linked statically, we can get rid of -fPIC
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
@ -437,12 +437,10 @@ void BackgroundSlicingProcess::prepare_upload()
|
|||||||
|
|
||||||
if (m_print == m_fff_print) {
|
if (m_print == m_fff_print) {
|
||||||
m_print->set_status(95, "Running post-processing scripts");
|
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) {
|
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");
|
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());
|
m_upload_job.upload_data.upload_path = m_fff_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string());
|
||||||
} else {
|
} else {
|
||||||
m_sla_print->export_raster<SLAZipFmt>(source_path.string());
|
m_sla_print->export_raster<SLAZipFmt>(source_path.string());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user