mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:29:04 +08:00
Fix fatal error on empty layers caused by recent large refactorings
This commit is contained in:
parent
ab7697ec1c
commit
c68862582c
@ -158,7 +158,7 @@ sub slice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# remove empty layers from bottom
|
# remove empty layers from bottom
|
||||||
while (@{$self->layers} && !@{$self->layers->[0]->slices} && !@{$self->layers->[0]->thin_walls}) {
|
while (@{$self->layers} && !@{$self->layers->[0]->slices} && !map @{$_->thin_walls}, @{$self->layers->[0]->regions}) {
|
||||||
shift @{$self->layers};
|
shift @{$self->layers};
|
||||||
for (my $i = 0; $i <= $#{$self->layers}; $i++) {
|
for (my $i = 0; $i <= $#{$self->layers}; $i++) {
|
||||||
$self->layers->[$i]->id($i);
|
$self->layers->[$i]->id($i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user