From d1e0bcf11336bee0ebc2e10233877e6008fcd1ac Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 1 Oct 2012 18:22:35 +0200 Subject: [PATCH] Bugfix: tool numbers written in G-code were wrong --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 90a6cea9e..a135be271 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -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;