Bugfix: tool numbers written in G-code were wrong

This commit is contained in:
Alessandro Ranellucci 2012-10-01 18:22:35 +02:00
parent 1a6eaeaa91
commit d1e0bcf113

View file

@ -388,7 +388,7 @@ sub set_extruder {
# set the new extruder
$self->extruder($extruder);
$gcode .= sprintf "T%d%s\n", $extruder, ($Slic3r::Config->gcode_comments ? ' ; change extruder' : '');
$gcode .= sprintf "T%d%s\n", $extruder->id, ($Slic3r::Config->gcode_comments ? ' ; change extruder' : '');
$gcode .= $self->reset_e;
return $gcode;