mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 14:22:54 +02:00
After recent memory optimizations, no solid layers were made when using fill density == 0
This commit is contained in:
1 parent
67a076b360
commit
494f4f94bf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user