A bit of clean-up in GCode.cpp
This commit is contained in:
parent
c52c31a855
commit
c159165780
1 changed files with 3 additions and 3 deletions
|
@ -890,11 +890,11 @@ void GCode::process_layer(
|
||||||
// Extruder ID of the support base. -1 if "don't care".
|
// Extruder ID of the support base. -1 if "don't care".
|
||||||
unsigned int support_extruder = object.config.support_material_extruder.value - 1;
|
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?
|
// 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".
|
// Extruder ID of the support interface. -1 if "don't care".
|
||||||
unsigned int interface_extruder = object.config.support_material_interface_extruder.value - 1;
|
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?
|
// 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) {
|
if (support_dontcare || interface_dontcare) {
|
||||||
// Some support will be printed with "don't care" material, preferably non-soluble.
|
// Some support will be printed with "don't care" material, preferably non-soluble.
|
||||||
// Is the current extruder assigned a soluble filament?
|
// Is the current extruder assigned a soluble filament?
|
||||||
|
|
Loading…
Reference in a new issue