From a1a12ffe8edee329bfd785847519d4848878aa1f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 16 Nov 2012 12:37:47 +0100 Subject: [PATCH] Allow setting top-solid-layers and bottom-solid-layers to 0 independently --- lib/Slic3r/Layer/Region.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index 69226b2f6..e940d9ec8 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -395,8 +395,11 @@ sub prepare_fill_surfaces { # if no solid layers are requested, turn top/bottom surfaces to internal # note that this modifies $self->surfaces in place - if ($Slic3r::Config->top_solid_layers == 0 && $Slic3r::Config->bottom_solid_layers == 0) { - $_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type != S_TYPE_INTERNAL, @surfaces; + if ($Slic3r::Config->top_solid_layers == 0) { + $_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type == S_TYPE_TOP, @surfaces; + } + if ($Slic3r::Config->bottom_solid_layers == 0) { + $_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type == S_TYPE_BOTTOM, @surfaces; } # if hollow object is requested, remove internal surfaces