A bit of clean-up in GCode.cpp

This commit is contained in:
bubnikv 2017-07-11 11:42:55 +02:00
parent c52c31a855
commit c159165780

View File

@ -890,11 +890,11 @@ void GCode::process_layer(
// Extruder ID of the support base. -1 if "don't care".
unsigned int support_extruder = object.config.support_material_extruder.value - 1;
// Shall the support be printed with the active extruder, preferably with non-soluble, to avoid tool changes?
bool support_dontcare = support_extruder == (unsigned int)-1;
bool support_dontcare = object.config.support_material_extruder.value == 0;
// Extruder ID of the support interface. -1 if "don't care".
unsigned int interface_extruder = object.config.support_material_interface_extruder.value - 1;
// Shall the support interface be printed with the active extruder, preferably with non-soluble, to avoid tool changes?
bool interface_dontcare = interface_extruder == (unsigned int)-1;
bool interface_dontcare = object.config.support_material_interface_extruder.value == 0;
if (support_dontcare || interface_dontcare) {
// Some support will be printed with "don't care" material, preferably non-soluble.
// Is the current extruder assigned a soluble filament?