From afd8e0a1bdc92471deb2f85d12ac06475986939c Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 26 Nov 2011 15:11:11 +0100 Subject: [PATCH] Bugfix: setting temperature to zero didn't remove it from output --- lib/Slic3r/Print.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 5760594da..1a13c4ea6 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -368,9 +368,9 @@ sub export_gcode { or die "Failed to open $file for writing\n"; # write start commands to file - printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature unless $Slic3r::temperature; + printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature if $Slic3r::temperature; print $fh "$Slic3r::start_gcode\n"; - printf $fh "M109 S%d ; wait for temperature to be reached\n", $Slic3r::temperature unless $Slic3r::temperature; + printf $fh "M109 S%d ; wait for temperature to be reached\n", $Slic3r::temperature if $Slic3r::temperature; print $fh "G90 ; use absolute coordinates\n"; print $fh "G21 ; set units to millimeters\n"; print $fh "G92 E0 ; reset extrusion distance\n" if !$Slic3r::no_extrusion;