mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Bugfix: sparse and wrong infill was generated for objects with null fill density. Also fixed a division by zero.
This commit is contained in:
parent
22551b64de
commit
4cdd0f6fd0
4 changed files with 30 additions and 12 deletions
|
@ -171,6 +171,13 @@ sub detect_surfaces_type {
|
|||
Slic3r::debugf " layer %d has %d bottom, %d top and %d internal surfaces\n",
|
||||
$layer->id, scalar(@bottom), scalar(@top), scalar(@internal);
|
||||
}
|
||||
|
||||
# remove internal surfaces if no infill is requested
|
||||
if ($Slic3r::fill_density == 0) {
|
||||
foreach my $layer (@{$self->layers}) {
|
||||
@{$layer->surfaces} = grep $_->surface_type ne 'internal', @{$layer->surfaces};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub discover_horizontal_shells {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue