Fix previous commit about slicing from smallest to tallest

degen-loop-screen
Alessandro Ranellucci 2012-05-21 20:23:17 +02:00
parent e4b37db13f
commit e7d609db12
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ sub write_gcode {
# print objects from the smallest to the tallest to avoid collisions
# when moving onto next object starting point
my @obj_idx = sort { $a->layer_count <=> $b->layer_count } 0..$#{$self->objects};
my @obj_idx = sort { $self->objects->[$a]->layer_count <=> $self->objects->[$b]->layer_count } 0..$#{$self->objects};
my $finished_objects = 0;
for my $obj_idx (@obj_idx) {