From 5930267de9c2cb731d0e641a74e294b67900c537 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 21 Dec 2012 20:25:48 +0100 Subject: [PATCH] Bugfix: some top/bottom solid shells are not treated as solid. #689 --- lib/Slic3r/Print/Object.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index a860c625d..a7f82168a 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -336,10 +336,8 @@ sub discover_horizontal_shells { } foreach my $type (S_TYPE_TOP, S_TYPE_BOTTOM) { - # find surfaces of current type for current layer - # and offset them to take perimeters into account - my @surfaces = map $_->offset($Slic3r::Config->perimeters * $layerm->perimeter_flow->scaled_width), - grep $_->surface_type == $type, @{$layerm->fill_surfaces} or next; + # find slices of current type for current layer + my @surfaces = grep $_->surface_type == $type, @{$layerm->slices} or next; my $surfaces_p = [ map $_->p, @surfaces ]; Slic3r::debugf "Layer %d has %d surfaces of type '%s'\n", $i, scalar(@surfaces), ($type == S_TYPE_TOP ? 'top' : 'bottom');