Fix skeinforge bug reported by Joergen Geerds.

This commit is contained in:
Daid 2012-04-22 00:46:34 +02:00
parent c35be9e4b5
commit 7269206f73

View file

@ -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]