Always specify tool number in M104/M109 when printing with multiple extruders

This commit is contained in:
Alessandro Ranellucci 2012-10-21 21:44:06 +02:00
parent 4f1b56f004
commit 76f75db055

View file

@ -421,7 +421,7 @@ sub set_temperature {
: ('M104', 'set temperature'); : ('M104', 'set temperature');
my $gcode = sprintf "$code %s%d %s; $comment\n", my $gcode = sprintf "$code %s%d %s; $comment\n",
($Slic3r::Config->gcode_flavor eq 'mach3' ? 'P' : 'S'), $temperature, ($Slic3r::Config->gcode_flavor eq 'mach3' ? 'P' : 'S'), $temperature,
(defined $tool && $tool != $self->extruder->id) ? "T$tool " : ""; (defined $tool && $self->multiple_extruders) ? "T$tool " : "";
$gcode .= "M116 ; wait for temperature to be reached\n" $gcode .= "M116 ; wait for temperature to be reached\n"
if $Slic3r::Config->gcode_flavor eq 'teacup' && $wait; if $Slic3r::Config->gcode_flavor eq 'teacup' && $wait;