diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index 2c6625ee0d..7f6fcb12a5 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -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)