After recent memory optimizations, no solid layers were made when using fill density == 0

This commit is contained in:
Alessandro Ranellucci 2012-05-20 17:28:53 +02:00
parent 67a076b360
commit 494f4f94bf
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ sub make_fill {
my $density = $Slic3r::fill_density;
my $flow_spacing = $Slic3r::flow_spacing;
my $is_bridge = $layer->id > 0 && $surface->surface_type == S_TYPE_BOTTOM;
my $is_solid = grep { $surface->surface_type == $_ } S_TYPE_TOP, S_TYPE_BOTTOM, S_TYPE_INTERNALSOLID;
my $is_solid = (grep { $surface->surface_type == $_ } S_TYPE_TOP, S_TYPE_BOTTOM, S_TYPE_INTERNALSOLID) ? 1 : 0;
# force 100% density and rectilinear fill for external surfaces
if ($surface->surface_type != S_TYPE_INTERNAL) {

View file

@ -347,7 +347,7 @@ sub prepare_fill_surfaces {
# remove internal surfaces
if ($Slic3r::fill_density == 0) {
@surfaces = grep $_->surface_type == S_TYPE_INTERNAL, @surfaces;
@surfaces = grep $_->surface_type != S_TYPE_INTERNAL, @surfaces;
}
$self->fill_surfaces([@surfaces]);