mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-16 06:01:49 +08:00
Fix for auto-heating when using one extruder from many. supermerill/SuperSlicer#1103
This commit is contained in:
parent
b6d278a36f
commit
0fe1664f19
@ -1819,14 +1819,14 @@ void GCode::_print_first_layer_extruder_temperatures(FILE *file, Print &print, c
|
||||
// Custom G-code does not set the extruder temperature. Do it now.
|
||||
if (!print.config().single_extruder_multi_material.value) {
|
||||
// Set temperatures of all the printing extruders.
|
||||
for (unsigned int tool_id : print.extruders()) {
|
||||
int temp = print.config().first_layer_temperature.get_at(tool_id);
|
||||
for (const Extruder& tool : m_writer.extruders()) {
|
||||
int temp = print.config().first_layer_temperature.get_at(tool.id());
|
||||
if (temp == 0)
|
||||
temp = print.config().temperature.get_at(tool_id);
|
||||
temp = print.config().temperature.get_at(tool.id());
|
||||
if (print.config().ooze_prevention.value)
|
||||
temp += print.config().standby_temperature_delta.value;
|
||||
if (temp > 0)
|
||||
_write(file, m_writer.set_temperature(temp, false, tool_id));
|
||||
_write(file, m_writer.set_temperature(temp, false, tool.id()));
|
||||
}
|
||||
}
|
||||
if (wait || print.config().single_extruder_multi_material.value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user