chiark / gitweb /
Merge commit '351bb29ade66bed0b3b147cd790293d206127c95'
authorLawrence Johnston <Lawrence.B.Johnston@gmail.com>
Sun, 11 Mar 2012 21:57:57 +0000 (14:57 -0700)
committerLawrence Johnston <Lawrence.B.Johnston@gmail.com>
Sun, 11 Mar 2012 21:57:57 +0000 (14:57 -0700)
* commit '351bb29ade66bed0b3b147cd790293d206127c95':
  Fixed flip options, added show log when slicing fails, fixed bug in comb module

SkeinPyPy_NewUI/newui/sliceProgessPanel.py
SkeinPyPy_NewUI/skeinforge_application/skeinforge_plugins/craft_plugins/carve.py
SkeinPyPy_NewUI/skeinforge_application/skeinforge_plugins/craft_plugins/comb.py

index 9506e152df2d85ef9883585f267f8276fe3a7219..1dd2dc06949c07d5e9f9fc1bace7bb27ee393a45 100644 (file)
@@ -74,18 +74,18 @@ class sliceProgessPanel(wx.Panel):
        def OnSliceDone(self, result):
                self.progressGauge.Destroy()
                self.progressLog = result.progressLog
+               self.sizer.Remove(self.abortButton)
+               self.logButton = wx.Button(self, -1, "Show Log")
+               self.Bind(wx.EVT_BUTTON, self.OnShowLog, self.logButton)
+               self.sizer.Add(self.logButton, 0)
                if result.returnCode == 0:
                        self.statusText.SetLabel("Ready.")
-                       self.logButton = wx.Button(self, -1, "Show Log")
-                       self.Bind(wx.EVT_BUTTON, self.OnShowLog, self.logButton)
                        self.showButton = wx.Button(self, -1, "Show GCode")
                        self.Bind(wx.EVT_BUTTON, self.OnShowGCode, self.showButton)
-                       self.sizer.Remove(self.abortButton)
-                       self.sizer.Add(self.logButton, 0)
                        self.sizer.Add(self.showButton, 0)
-                       self.sizer.Add(self.abortButton, 0)
                else:
                        self.statusText.SetLabel("Something went wrong during slicing!")
+               self.sizer.Add(self.abortButton, 0)
                self.sizer.Layout()
                self.Layout()
                self.abort = True
index cb2a5ec30ff28aba627b679f01f75de9b4f1417e..5a01edeb49d90ac46a2deb90198ea4f65e6ad98f 100644 (file)
@@ -204,11 +204,11 @@ class CarveSkein:
                scaleX = scale
                scaleY = scale
                scaleZ = scale
-               if repository.flipX.value == 'True':
+               if repository.flipX.value == True:
                        scaleX = -scaleX
-               if repository.flipY.value == 'True':
+               if repository.flipY.value == True:
                        scaleY = -scaleY
-               if repository.flipZ.value == 'True':
+               if repository.flipZ.value == True:
                        scaleZ = -scaleZ
                mat00 = math.cos(rotate) * scaleX
                mat01 =-math.sin(rotate) * scaleY
index 8ca5e2d270ada38b481bd46909af78408ab6bebd..a817f52b265e15ba5c304b48adfb419b2369bb5d 100644 (file)
@@ -141,12 +141,11 @@ class BoundarySegment:
 
        def getSegment(self, boundarySegmentIndex, boundarySegments, edgeWidth, runningJumpSpace):
                'Get both paths along the loop from the point closest to the begin to the point closest to the end.'
-               negativeEdgeWidth = -edgeWidth
                nextBoundarySegment = boundarySegments[boundarySegmentIndex + 1]
                nextBegin = nextBoundarySegment.segment[0]
                end = getJumpPointIfInside(self.boundary, nextBegin, edgeWidth, runningJumpSpace)
                if end == None:
-                       end = self.boundary.segment[1]
+                       end = self.segment[1]
                nextBegin = getJumpPointIfInside(nextBoundarySegment.boundary, end, edgeWidth, runningJumpSpace)
                if nextBegin != None:
                        nextBoundarySegment.segment[0] = nextBegin