Use the proper function for checking if 2 vertexes are almost equal.

master
daid 2012-06-01 13:27:19 +02:00
parent b6ebfc3f17
commit caa7d04d97
1 changed files with 1 additions and 1 deletions

View File

@ -313,6 +313,6 @@ def DrawGCodeLayer(layer):
glVertex3f(v.x, v.y, v.z)
glEnd()
prevPathWasRetract = False
if path.type == 'retract' and (path.list[0] - path.list[-1]).vsize() < 0.001:
if path.type == 'retract' and path.list[0].almostEqual(path.list[-1]):
prevPathWasRetract = True
glEnable(GL_CULL_FACE)