From b5bd216f5cd30406a877c0444ef23d4524ddc5f2 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 28 Oct 2012 14:23:47 +0100 Subject: [PATCH] Do not combine infill for bottom layer --- lib/Slic3r/Print/Object.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index d7fad828b..09ed0b05e 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -434,7 +434,7 @@ sub combine_infill { # for each possible depth, look for intersections with the lower layer # we do this from the greater depth to the smaller for (my $d = $Slic3r::Config->infill_every_layers - 1; $d >= 1; $d--) { - next if ($i - $d) < 0; + next if ($i - $d) <= 0; # do not combine infill for bottom layer my $lower_layerm = $self->layer($i - 1)->regions->[$region_id]; # select surfaces of the lower layer having the depth we're looking for