chiark / gitweb /
Fix a bug in the project planner when the temperature is set to zero
authordaid <daid303@gmail.com>
Mon, 6 Aug 2012 08:18:09 +0000 (10:18 +0200)
committerdaid <daid303@gmail.com>
Mon, 6 Aug 2012 08:18:09 +0000 (10:18 +0200)
Cura/gui/projectPlanner.py

index 954b001e55d598a9d5ff6bcd0acadd4a96162030..0f71ec889cbbf3e4676c7d0b9a85cd2645688865 100644 (file)
@@ -969,7 +969,7 @@ class ProjectSliceProgressWindow(wx.Frame):
                        else:\r
                                #reset the extrusion length, and move to the next object center.\r
                                resultFile.write(';TYPE:CUSTOM\n')\r
-                               if prevTemp != action.temperature:\r
+                               if prevTemp != action.temperature and action.temperature > 0:\r
                                        resultFile.write('M104 S%d\n' % (int(action.temperature)))\r
                                        prevTemp = action.temperature\r
                                resultFile.write(profile.getAlterationFileContents('nextobject.gcode'))\r