Fix bug when testing verticallity during PathFeedRate generation

This commit is contained in:
sliptonic
2022-09-06 15:48:31 -05:00
parent e641232899
commit 9b2d39ae0d

View File

@@ -67,7 +67,7 @@ def setFeedRate(commandlist, ToolController):
else currentposition.z
)
endpoint = FreeCAD.Vector(x, y, z)
if currentposition == endpoint:
if PathGeom.pointsCoincide(currentposition, endpoint):
return True
return PathGeom.isVertical(Part.makeLine(currentposition, endpoint))