Revert "Refactoring: initialize all layers at once and avoid duplication of slicing height math". #637

This reverts commit 08270022dd.
This commit is contained in:
Alessandro Ranellucci 2012-08-26 17:47:00 +02:00
parent 08270022dd
commit 9bd1b0f6ba
3 changed files with 24 additions and 25 deletions

View file

@ -477,7 +477,7 @@ sub make_skirt {
$skirt_height = $self->layer_count if $skirt_height > $self->layer_count;
my @points = ();
foreach my $obj_idx (0 .. $#{$self->objects}) {
my @layers = map $self->objects->[$obj_idx]->layers->[$_], 0..($skirt_height-1);
my @layers = map $self->objects->[$obj_idx]->layer($_), 0..($skirt_height-1);
my @layer_points = (
(map @$_, map @{$_->expolygon}, map @{$_->slices}, @layers),
(map @$_, map @{$_->thin_walls}, @layers),