From: daid Date: Fri, 21 Sep 2012 14:21:59 +0000 (+0200) Subject: Fix a bug with the project planners "all at once" mode. X-Git-Tag: 13.03~329^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b1a7647c6e3ff1f3c52a0cd84d966acc48ab376a;p=cura.git Fix a bug with the project planners "all at once" mode. --- diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index 619a4e25..63a88cf2 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -1003,7 +1003,9 @@ class ProjectSliceProgressWindow(wx.Frame): wx.CallAfter(self.progressGauge2.SetValue, self.actionList.index(action) + 1) resultFile.write(';TYPE:CUSTOM\n') - resultFile.write('G1 Z%f F%f\n' % (self.actionList[-1].clearZ, profile.getProfileSettingFloat('max_z_speed') * 60)) + if len(self.actionList) > 1: + #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. + resultFile.write('G1 Z%f F%f\n' % (self.actionList[-1].clearZ, profile.getProfileSettingFloat('max_z_speed') * 60)) resultFile.write(profile.getAlterationFileContents('end.gcode')) resultFile.close()