mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 21:26:01 +08:00
Multimaterial print - making sure that temperatures will be changed with SE printer without the wipe tower
This commit is contained in:
parent
743a08f0cf
commit
4b9e366f00
@ -2821,6 +2821,14 @@ std::string GCode::set_extruder(unsigned int extruder_id, double print_z)
|
|||||||
// user provided his own toolchange gcode, no need to do anything
|
// user provided his own toolchange gcode, no need to do anything
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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.wipe_tower) {
|
||||||
|
int temp = (m_layer_index == 0 ? m_config.first_layer_temperature.get_at(extruder_id) :
|
||||||
|
m_config.temperature.get_at(extruder_id));
|
||||||
|
|
||||||
|
gcode += m_writer.set_temperature(temp, false);
|
||||||
|
}
|
||||||
|
|
||||||
m_placeholder_parser.set("current_extruder", extruder_id);
|
m_placeholder_parser.set("current_extruder", extruder_id);
|
||||||
|
|
||||||
// Append the filament start G-code.
|
// Append the filament start G-code.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user