Path: Add check for CustomPoint input

If custom points are same, the user has not entered acceptable values for path generation with custom points.
This commit is contained in:
Russell Johnson
2021-02-21 14:15:41 -06:00
parent 90564ea3fd
commit d1174dc4b3

View File

@@ -433,7 +433,12 @@ class ObjectSlot(PathOp.ObjectOp):
# Use custom inputs here
p1 = obj.CustomPoint1
p2 = obj.CustomPoint2
if p1.z == p2.z:
if p1 == p2:
msg = translate('PathSlot',
'Custom points are identical.')
FreeCAD.Console.PrintError(msg + '\n')
return False
elif p1.z == p2.z:
pnts = (p1, p2)
else:
msg = translate('PathSlot',