mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-09-09 00:07:55 -06:00
Allow setting top-solid-layers and bottom-solid-layers to 0 independently
This commit is contained in:
parent
06b475a4ed
commit
a1a12ffe8e
1 changed files with 5 additions and 2 deletions
|
@ -395,8 +395,11 @@ sub prepare_fill_surfaces {
|
||||||
|
|
||||||
# if no solid layers are requested, turn top/bottom surfaces to internal
|
# if no solid layers are requested, turn top/bottom surfaces to internal
|
||||||
# note that this modifies $self->surfaces in place
|
# note that this modifies $self->surfaces in place
|
||||||
if ($Slic3r::Config->top_solid_layers == 0 && $Slic3r::Config->bottom_solid_layers == 0) {
|
if ($Slic3r::Config->top_solid_layers == 0) {
|
||||||
$_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type != S_TYPE_INTERNAL, @surfaces;
|
$_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type == S_TYPE_TOP, @surfaces;
|
||||||
|
}
|
||||||
|
if ($Slic3r::Config->bottom_solid_layers == 0) {
|
||||||
|
$_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type == S_TYPE_BOTTOM, @surfaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
# if hollow object is requested, remove internal surfaces
|
# if hollow object is requested, remove internal surfaces
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue