When a layer contained the support interface only, it was errorneously
printed with the support base material.
This commit is contained in:
bubnikv 2017-10-03 13:22:37 +02:00
parent 9898024ce9
commit eb0117b1c1

View File

@ -1014,7 +1014,7 @@ void GCode::process_layer(
// the interface may be interleaved with the support base. // the interface may be interleaved with the support base.
bool single_extruder = ! has_support || support_extruder == interface_extruder; bool single_extruder = ! has_support || support_extruder == interface_extruder;
// Assign an extruder to the base. // Assign an extruder to the base.
ObjectByExtruder &obj = object_by_extruder(by_extruder, support_extruder, &layer_to_print - layers.data(), layers.size()); ObjectByExtruder &obj = object_by_extruder(by_extruder, has_support ? support_extruder : interface_extruder, &layer_to_print - layers.data(), layers.size());
obj.support = &support_layer.support_fills; obj.support = &support_layer.support_fills;
obj.support_extrusion_role = single_extruder ? erMixed : erSupportMaterial; obj.support_extrusion_role = single_extruder ? erMixed : erSupportMaterial;
if (! single_extruder && has_interface) { if (! single_extruder && has_interface) {