From caa79583ff6f9873d748c756d8c24dcc31e3f612 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 9 Mar 2013 17:08:17 +0100 Subject: [PATCH] Tiny optimization --- lib/Slic3r/Layer/Region.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index 8317cdd847..b130f7828a 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -274,7 +274,7 @@ sub make_perimeters { } # fill gaps - if ($Slic3r::Config->gap_fill_speed > 0 && $Slic3r::Config->fill_density > 0) { + if ($Slic3r::Config->gap_fill_speed > 0 && $Slic3r::Config->fill_density > 0 && @gaps) { my $filler = Slic3r::Fill::Rectilinear->new(layer_id => $self->layer->id); # we should probably use this code to handle thin walls and remove that logic from