FIX: use support_interface_material between support_material

jira: STUDIO-10544
Change-Id: Id1bfda49bc5ac2bd6ecbad473d8ee063d3c0f030
This commit is contained in:
jiaxi.chen 2025-03-07 15:51:06 +08:00 committed by lane.wei
parent 926cfb14d2
commit e7eb3bd388
1 changed files with 9 additions and 0 deletions

View File

@ -3849,6 +3849,15 @@ GCode::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)