FIX: use support_interface_material between support_material

jira: STUDIO-10544
Change-Id: Id1bfda49bc5ac2bd6ecbad473d8ee063d3c0f030
(cherry picked from commit e7eb3bd388ddecdb7f9f78bf69cd378b77b231ef)
This commit is contained in:
jiaxi.chen 2025-03-07 15:51:06 +08:00 committed by Noisyfox
parent 929b02dc79
commit 01c6326ed0

View file

@ -4352,6 +4352,15 @@ LayerResult GCode::process_layer(
break;
}
}
if (print.config().filament_is_support.get_at(dontcare_extruder)) {
// The last extruder printed on the previous layer extrudes support filament.
// Try to find a non-support extruder on the same layer.
for (unsigned int extruder_id : layer_tools.extruders)
if (!print.config().filament_is_support.get_at(extruder_id)) {
dontcare_extruder = extruder_id;
break;
}
}
if (support_dontcare)
support_extruder = dontcare_extruder;
if (interface_dontcare)