mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-04 20:40:42 +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)
|
glVertex3f(v.x, v.y, v.z)
|
||||||
glEnd()
|
glEnd()
|
||||||
prevPathWasRetract = False
|
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
|
prevPathWasRetract = True
|
||||||
glEnable(GL_CULL_FACE)
|
glEnable(GL_CULL_FACE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user