mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
fix a bug that gapfill was assigned with wrong extruder/filament
This commit is contained in:
parent
7d4402cea1
commit
78d72632f7
1 changed files with 4 additions and 10 deletions
|
@ -173,22 +173,16 @@ unsigned int LayerTools::extruder(const ExtrusionEntityCollection &extrusions, c
|
|||
assert(region.config().solid_infill_filament.value > 0);
|
||||
// 1 based extruder ID.
|
||||
unsigned int extruder = 1;
|
||||
|
||||
if (this->extruder_override == 0) {
|
||||
if (extrusions.has_infill()) {
|
||||
if (extrusions.has_solid_infill()) {
|
||||
if (extrusions.has_solid_infill())
|
||||
extruder = region.config().solid_infill_filament;
|
||||
} else {
|
||||
else
|
||||
extruder = region.config().sparse_infill_filament;
|
||||
}
|
||||
} else if (extrusions.has_perimeters()) {
|
||||
} else
|
||||
extruder = region.config().wall_filament.value;
|
||||
} else {
|
||||
extruder = this->extruder_override;
|
||||
}
|
||||
} else {
|
||||
} else
|
||||
extruder = this->extruder_override;
|
||||
}
|
||||
|
||||
return (extruder == 0) ? 0 : extruder - 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue