mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix previous commit about slicing from smallest to tallest
This commit is contained in:
@@ -538,7 +538,7 @@ sub write_gcode {
|
|||||||
|
|
||||||
# print objects from the smallest to the tallest to avoid collisions
|
# print objects from the smallest to the tallest to avoid collisions
|
||||||
# when moving onto next object starting point
|
# 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;
|
my $finished_objects = 0;
|
||||||
for my $obj_idx (@obj_idx) {
|
for my $obj_idx (@obj_idx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user