mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
After recent memory optimizations, no solid layers were made when using fill density == 0
This commit is contained in:
parent
67a076b360
commit
494f4f94bf
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ sub make_fill {
|
||||||
my $density = $Slic3r::fill_density;
|
my $density = $Slic3r::fill_density;
|
||||||
my $flow_spacing = $Slic3r::flow_spacing;
|
my $flow_spacing = $Slic3r::flow_spacing;
|
||||||
my $is_bridge = $layer->id > 0 && $surface->surface_type == S_TYPE_BOTTOM;
|
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
|
# force 100% density and rectilinear fill for external surfaces
|
||||||
if ($surface->surface_type != S_TYPE_INTERNAL) {
|
if ($surface->surface_type != S_TYPE_INTERNAL) {
|
||||||
|
|
|
@ -347,7 +347,7 @@ sub prepare_fill_surfaces {
|
||||||
|
|
||||||
# remove internal surfaces
|
# remove internal surfaces
|
||||||
if ($Slic3r::fill_density == 0) {
|
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]);
|
$self->fill_surfaces([@surfaces]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue