mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 03:30:52 +08:00
Bugfix: wrong extruder order when more than 10 extruders were used. #3235
This commit is contained in:
parent
662031bc2d
commit
c93314c8fe
@ -582,7 +582,7 @@ sub process_layer {
|
||||
}
|
||||
|
||||
# tweak extruder ordering to save toolchanges
|
||||
my @extruders = sort keys %by_extruder;
|
||||
my @extruders = sort { $a <=> $b } keys %by_extruder;
|
||||
if (@extruders > 1) {
|
||||
my $last_extruder_id = $self->_gcodegen->writer->extruder->id;
|
||||
if (exists $by_extruder{$last_extruder_id}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user