Fix previous commit about slicing from smallest to tallest
This commit is contained in:
parent
e4b37db13f
commit
e7d609db12
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue