From 97680041d9db9a6752b3931f13e48a1f26836aae Mon Sep 17 00:00:00 2001 From: daid303 Date: Thu, 14 Feb 2013 16:01:51 +0100 Subject: [PATCH] Fix the batchrun tool. --- Cura/gui/tools/batchRun.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/gui/tools/batchRun.py b/Cura/gui/tools/batchRun.py index 4c842586..ea4790bd 100644 --- a/Cura/gui/tools/batchRun.py +++ b/Cura/gui/tools/batchRun.py @@ -90,7 +90,7 @@ class batchRunWindow(wx.Frame): def OnSlice(self, e): sliceCmdList = [] outputFilenameList = [] - center = profile.getMachineCenterCoords() + center = profile.getMachineCenterCoords() + profile.getObjectMatrix() for filename in self.list: outputFilename = sliceRun.getExportFilename(filename) outputFilenameList.append(outputFilename) @@ -191,9 +191,9 @@ class BatchSliceProgressWindow(wx.Frame): def OnRun(self, index): while self.cmdIndex < len(self.sliceCmdList): - index = self.cmdIndex; + cmdIndex = self.cmdIndex; self.cmdIndex += 1 - action = self.sliceCmdList[index] + action = self.sliceCmdList[cmdIndex] wx.CallAfter(self.SetTitle, "Building: [%d/%d]" % (self.sliceCmdList.index(action) + 1, len(self.sliceCmdList))) p = sliceRun.startSliceCommandProcess(action) -- 2.30.2