Bugfix: solid-infill-below-area wasn't ignored when fill_density = 0, causing solid layers here and there. #1049

This commit is contained in:
Alessandro Ranellucci 2013-03-26 15:47:40 +01:00
parent 2f046799f2
commit aae9625a13
2 changed files with 19 additions and 1 deletions

View file

@ -462,7 +462,7 @@ sub prepare_fill_surfaces {
}
# turn too small internal regions into solid regions according to the user setting
{
if ($Slic3r::Config->fill_density > 0) {
my $min_area = scale scale $Slic3r::Config->solid_infill_below_area; # scaling an area requires two calls!
my @small = grep $_->surface_type == S_TYPE_INTERNAL && $_->expolygon->contour->area <= $min_area, @{$self->fill_surfaces};
$_->surface_type(S_TYPE_INTERNALSOLID) for @small;