Fix of soluble interface / non-soluble support:

The non-soluble support with "don't care" extruder will preferably
be printed with a non-soluble extruder, if possible without a tool change.
This commit is contained in:
bubnikv 2017-07-07 13:22:00 +02:00
parent abcd746774
commit 434f538919
3 changed files with 34 additions and 27 deletions

View file

@ -121,14 +121,6 @@ void ToolOrdering::collect_extruders(const PrintObject &object)
bool has_interface = role == erMixed || role == erSupportMaterialInterface;
unsigned int extruder_support = object.config.support_material_extruder.value;
unsigned int extruder_interface = object.config.support_material_interface_extruder.value;
if (has_support && has_interface) {
// If both base and interface supports are to be extruded and one of them will be extruded with a "don't care" extruder,
// print both with the same extruder to minimize extruder switches.
if (extruder_support == 0)
extruder_support = extruder_interface;
else if (extruder_interface == 0)
extruder_interface = extruder_support;
}
if (has_support)
layer_tools.extruders.push_back(extruder_support);
if (has_interface)