diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index fb9bcae24..502341df0 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -5597,8 +5597,8 @@ std::string GCode::set_extruder(unsigned int filament_id, double print_z, bool b // Set the temperature if the wipe tower didn't (not needed for non-single extruder MM) if (m_config.single_extruder_multi_material && !m_config.enable_prime_tower) { - int temp = (m_layer_index <= 0 ? m_config.nozzle_temperature_initial_layer.get_at(extruder_id) : - m_config.nozzle_temperature.get_at(extruder_id)); + int temp = (m_layer_index <= 0 ? m_config.nozzle_temperature_initial_layer.get_at(filament_id) : + m_config.nozzle_temperature.get_at(filament_id)); gcode += m_writer.set_temperature(temp, false); }