chiark / gitweb /
Fix a bug with the project planners "all at once" mode.
authordaid <daid303@gmail.com>
Fri, 21 Sep 2012 14:21:59 +0000 (16:21 +0200)
committerdaid <daid303@gmail.com>
Fri, 21 Sep 2012 14:21:59 +0000 (16:21 +0200)
Cura/gui/projectPlanner.py

index 619a4e25e28d3037b08859cdaf057ac2ee82018a..63a88cf256df748ee19d9ae539d6df323e0d2b92 100644 (file)
@@ -1003,7 +1003,9 @@ class ProjectSliceProgressWindow(wx.Frame):
                        wx.CallAfter(self.progressGauge2.SetValue, self.actionList.index(action) + 1)\r
                \r
                resultFile.write(';TYPE:CUSTOM\n')\r
-               resultFile.write('G1 Z%f F%f\n' % (self.actionList[-1].clearZ, profile.getProfileSettingFloat('max_z_speed') * 60))\r
+               if len(self.actionList) > 1:\r
+                       #only move to higher Z if we have sliced more then 1 object. This solves the "move into print after printing" problem with the print-all-at-once option.\r
+                       resultFile.write('G1 Z%f F%f\n' % (self.actionList[-1].clearZ, profile.getProfileSettingFloat('max_z_speed') * 60))\r
                resultFile.write(profile.getAlterationFileContents('end.gcode'))\r
                resultFile.close()\r
                \r