From 2c28d2f8747bb24606d196454be77e1049be3954 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 22 May 2012 12:17:17 +0200 Subject: [PATCH] Bugfix: with 0 solid layers, no infill was generated at all on fist and last layer. #325 --- lib/Slic3r/Layer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index ec837b16..e886e49a 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -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