chiark / gitweb /
Fix the batchrun tool.
authordaid303 <daid303@gmail.com>
Thu, 14 Feb 2013 15:01:51 +0000 (16:01 +0100)
committerdaid303 <daid303@gmail.com>
Thu, 14 Feb 2013 15:01:51 +0000 (16:01 +0100)
Cura/gui/tools/batchRun.py

index 4c842586383638b12d50eb3b1aad5676a48bfc45..ea4790bd501e3346a5dc0dd6a240261309e23f91 100644 (file)
@@ -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)