Fixed fatal error about missing method thin_walls(). #1607 #1615

This commit is contained in:
Alessandro Ranellucci 2013-12-17 16:15:25 +01:00
parent 94743d3af0
commit f4951367ea

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} && !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;
for (my $i = $first_object_layer_id; $i <= $#{$self->layers}; $i++) {
$self->layers->[$i]->id($i);