Skip to content

Commit

Permalink
Bugfix: wrong extruder order when more than 10 extruders were used. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Mar 14, 2017
1 parent 662031b commit c93314c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Slic3r/Print/GCode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down

0 comments on commit c93314c

Please sign in to comment.