Bugfix: --top-solid-layers was ignored. #769

degen-loop-screen
Alessandro Ranellucci 2012-10-28 12:52:44 +01:00
parent deea02b444
commit 2796041a6c
1 changed files with 3 additions and 1 deletions

View File

@ -344,7 +344,9 @@ sub discover_horizontal_shells {
Slic3r::debugf "Layer %d has %d surfaces of type '%s'\n",
$i, scalar(@surfaces), ($type == S_TYPE_TOP ? 'top' : 'bottom');
my $solid_layers = S_TYPE_TOP ? $Slic3r::Config->top_solid_layers : $Slic3r::Config->bottom_solid_layers;
my $solid_layers = ($type == S_TYPE_TOP)
? $Slic3r::Config->top_solid_layers
: $Slic3r::Config->bottom_solid_layers;
for (my $n = $type == S_TYPE_TOP ? $i-1 : $i+1;
abs($n - $i) <= $solid_layers-1;
$type == S_TYPE_TOP ? $n-- : $n++) {