mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Implemented an initial priming line for a single-material print
on a Prusa Multi-Material printer.
This commit is contained in:
parent
29d9a1e810
commit
2c5304a520
7 changed files with 38 additions and 11 deletions
|
@ -121,7 +121,7 @@ void ToolOrdering::collect_extruders(const PrintObject &object)
|
|||
LayerTools &layer_tools = this->tools_for_layer(layer->print_z);
|
||||
// What extruders are required to print this object layer?
|
||||
for (size_t region_id = 0; region_id < object.print()->regions.size(); ++ region_id) {
|
||||
const LayerRegion *layerm = layer->regions[region_id];
|
||||
const LayerRegion *layerm = (region_id < layer->regions.size()) ? layer->regions[region_id] : nullptr;
|
||||
if (layerm == nullptr)
|
||||
continue;
|
||||
const PrintRegion ®ion = *object.print()->regions[region_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue