From: Daid Date: Sat, 21 Apr 2012 22:46:34 +0000 (+0200) Subject: Fix skeinforge bug reported by Joergen Geerds. X-Git-Tag: RC3~35 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7269206f739e9a713ed62523acab2b921732f648;p=cura.git Fix skeinforge bug reported by Joergen Geerds. --- diff --git a/Cura/cura_sf/fabmetheus_utilities/euclidean.py b/Cura/cura_sf/fabmetheus_utilities/euclidean.py index 24708e02..f9c31483 100644 --- a/Cura/cura_sf/fabmetheus_utilities/euclidean.py +++ b/Cura/cura_sf/fabmetheus_utilities/euclidean.py @@ -882,7 +882,7 @@ def getHalfSimplifiedLoop( loop, radius, remainder ): 'Get the loop with half of the points inside the channel removed.' if len(loop) < 2: return loop - channelRadius = radius * .01 + channelRadius = abs(radius * .01) simplified = [] addIndex = 0 if remainder == 1: @@ -899,7 +899,7 @@ def getHalfSimplifiedPath(path, radius, remainder): 'Get the path with half of the points inside the channel removed.' if len(path) < 2: return path - channelRadius = radius * .01 + channelRadius = abs(radius * .01) simplified = [path[0]] for pointIndex in xrange(1, len(path) - 1): point = path[pointIndex]