mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 18:19:12 +08:00
parent
94743d3af0
commit
f4951367ea
@ -198,7 +198,7 @@ sub slice {
|
|||||||
|
|
||||||
# remove empty layers from bottom
|
# remove empty layers from bottom
|
||||||
my $first_object_layer_id = $self->config->raft_layers;
|
my $first_object_layer_id = $self->config->raft_layers;
|
||||||
while (@{$self->layers} && !@{$self->layers->[$first_object_layer_id]->slices} && !map @{$_->thin_walls}, @{$self->layers->[$first_object_layer_id]->regions}) {
|
while (@{$self->layers} && !@{$self->layers->[$first_object_layer_id]->slices}, @{$self->layers->[$first_object_layer_id]->regions}) {
|
||||||
splice @{$self->layers}, $first_object_layer_id, 1;
|
splice @{$self->layers}, $first_object_layer_id, 1;
|
||||||
for (my $i = $first_object_layer_id; $i <= $#{$self->layers}; $i++) {
|
for (my $i = $first_object_layer_id; $i <= $#{$self->layers}; $i++) {
|
||||||
$self->layers->[$i]->id($i);
|
$self->layers->[$i]->id($i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user