diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-11-29 13:15:29 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-11-29 13:15:50 +0400 |
commit | d168ecbb4e9b7b9b808e3de904583d9cfc014708 (patch) | |
tree | 7d56e3bb2645ecc510b8fd074710fdd9af72afe1 /lib/Slic3r/Print.pm | |
parent | 248ed8589acb539656696d87b39e5a0365cf2aab (diff) |
Bugfix: fill density = 0 was preventing generation of extra solid layers. #75
Diffstat (limited to 'lib/Slic3r/Print.pm')
-rw-r--r-- | lib/Slic3r/Print.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 6fac7a85c..ae7b96858 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -171,13 +171,6 @@ 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 { @@ -283,7 +276,7 @@ sub extrude_skirt { # combine fill surfaces across layers sub infill_every_layers { my $self = shift; - return unless $Slic3r::infill_every_layers > 1; + return unless $Slic3r::infill_every_layers > 1 && $Slic3r::fill_density > 0; printf "==> COMBINING INFILL\n"; |