mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 10:15:58 +08:00
fix error on extruders when no support interface
supermerill/SuperSlicer#1233
This commit is contained in:
parent
1749bf0952
commit
052efbf2c3
@ -375,6 +375,7 @@ std::vector<uint16_t> Print::support_material_extruders() const
|
|||||||
uint16_t i = (uint16_t)object->config().support_material_extruder - 1;
|
uint16_t i = (uint16_t)object->config().support_material_extruder - 1;
|
||||||
extruders.emplace_back((i >= num_extruders) ? 0 : i);
|
extruders.emplace_back((i >= num_extruders) ? 0 : i);
|
||||||
}
|
}
|
||||||
|
if (object->config().support_material_interface_layers > 0) {
|
||||||
assert(object->config().support_material_interface_extruder >= 0);
|
assert(object->config().support_material_interface_extruder >= 0);
|
||||||
if (object->config().support_material_interface_extruder == 0)
|
if (object->config().support_material_interface_extruder == 0)
|
||||||
support_uses_current_extruder = true;
|
support_uses_current_extruder = true;
|
||||||
@ -384,6 +385,7 @@ std::vector<uint16_t> Print::support_material_extruders() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (support_uses_current_extruder)
|
if (support_uses_current_extruder)
|
||||||
// Add all object extruders to the support extruders as it is not know which one will be used to print supports.
|
// Add all object extruders to the support extruders as it is not know which one will be used to print supports.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user