Merge pull request #7454 from sliptonic/PathFeedRateBug

Fix bug when testing verticallity during PathFeedRate generation
This commit is contained in:
sliptonic
2022-09-06 16:29:48 -05:00
committed by GitHub

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))