From 468f09d3c1092673b5b8aa8b8e268e1fc0be9e45 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 11 Jan 2012 22:38:06 +0100 Subject: [PATCH] Bugfix: small surfaces where still infilled even with fill_density = 0 --- lib/Slic3r/Layer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index d7c1ae53f..670739c5b 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -245,7 +245,7 @@ sub remove_small_surfaces { # the difference between @surfaces and $self->fill_surfaces # is what's too small; we add it back as solid infill - { + if ($Slic3r::fill_density > 0) { my $diff = diff_ex( [ map $_->p, @surfaces ], [ map $_->p, @{$self->fill_surfaces} ],