mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 06:19:00 +08:00
Fix previous commit about slicing from smallest to tallest
This commit is contained in:
parent
e4b37db13f
commit
e7d609db12
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user