Fix a bug in the project planner when the temperature is set to zero
This commit is contained in:
parent
f068900086
commit
c8fb4ca80f
1 changed files with 1 additions and 1 deletions
|
@ -969,7 +969,7 @@ class ProjectSliceProgressWindow(wx.Frame):
|
||||||
else:
|
else:
|
||||||
#reset the extrusion length, and move to the next object center.
|
#reset the extrusion length, and move to the next object center.
|
||||||
resultFile.write(';TYPE:CUSTOM\n')
|
resultFile.write(';TYPE:CUSTOM\n')
|
||||||
if prevTemp != action.temperature:
|
if prevTemp != action.temperature and action.temperature > 0:
|
||||||
resultFile.write('M104 S%d\n' % (int(action.temperature)))
|
resultFile.write('M104 S%d\n' % (int(action.temperature)))
|
||||||
prevTemp = action.temperature
|
prevTemp = action.temperature
|
||||||
resultFile.write(profile.getAlterationFileContents('nextobject.gcode'))
|
resultFile.write(profile.getAlterationFileContents('nextobject.gcode'))
|
||||||
|
|
Loading…
Reference in a new issue