Fixed wrong commit f495136. Thanks pdbogen for the report. #1623

xs-bb
Alessandro Ranellucci 2013-12-18 10:20:36 +01:00
parent f4951367ea
commit a12b1765d6
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ sub slice {
# remove empty layers from bottom
my $first_object_layer_id = $self->config->raft_layers;
while (@{$self->layers} && !@{$self->layers->[$first_object_layer_id]->slices}, @{$self->layers->[$first_object_layer_id]->regions}) {
while (@{$self->layers} && !@{$self->layers->[$first_object_layer_id]->slices}) {
splice @{$self->layers}, $first_object_layer_id, 1;
for (my $i = $first_object_layer_id; $i <= $#{$self->layers}; $i++) {
$self->layers->[$i]->id($i);