Fixed regression causing one perimeter to be generated even when perimeters where set to 0. #759

This commit is contained in:
Alessandro Ranellucci 2012-10-28 19:27:54 +01:00
parent 8da4151c6d
commit 1ecadc10fb

View File

@ -196,7 +196,7 @@ sub make_perimeters {
# generate perimeters inwards (loop 0 is the external one)
my $loop_number = $Slic3r::Config->perimeters + ($surface->additional_inner_perimeters || 0);
push @perimeters, [[@last_offsets]];
push @perimeters, [[@last_offsets]] if $loop_number > 0;
for (my $loop = 1; $loop < $loop_number; $loop++) {
# offsetting a polygon can result in one or many offset polygons
my @new_offsets = ();