From 043dccdea0ebe811680fe78511e404440b472732 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 20 Feb 2023 08:46:38 +0100 Subject: [PATCH] Follow-up of 991aedd37ce64883a86af23dd5eb940f89a93377 - Fixed extruder temperature for single extruder multi material prints --- src/libslic3r/GCode/GCodeProcessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index eb7c46861f..5664768242 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -3378,9 +3378,9 @@ void GCodeProcessor::process_T(const std::string_view command) extra_time += m_kissslicer_toolchange_time_correction; simulate_st_synchronize(extra_time); - // specific to single extruder multi material, set the extruder temperature - // if not done yet - if (m_single_extruder_multi_material && m_extruder_temps[m_extruder_id] == 0.0f) + // specific to single extruder multi material, set the new extruder temperature + // to match the old one + if (m_single_extruder_multi_material) m_extruder_temps[m_extruder_id] = m_extruder_temps[old_extruder_id]; m_result.extruders_count = std::max(m_result.extruders_count, m_extruder_id + 1);