mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-26 16:22:00 +08:00
Allow setting top-solid-layers and bottom-solid-layers to 0 independently
This commit is contained in:
parent
06b475a4ed
commit
a1a12ffe8e
@ -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…
x
Reference in New Issue
Block a user