Bugfix: with 0 solid layers, no infill was generated at all on fist and last layer. #325

This commit is contained in:
Alessandro Ranellucci 2012-05-22 12:17:17 +02:00
parent e7d609db12
commit 2c28d2f874

View file

@ -342,7 +342,7 @@ sub prepare_fill_surfaces {
# remove top/bottom surfaces
if ($Slic3r::solid_layers == 0) {
@surfaces = grep $_->surface_type == S_TYPE_INTERNAL, @surfaces;
$_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type != S_TYPE_INTERNAL, @surfaces;
}
# remove internal surfaces