mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-04 23:20:39 +08:00
Use the proper function for checking if 2 vertexes are almost equal.
This commit is contained in:
parent
b6ebfc3f17
commit
caa7d04d97
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user