From 3891c509eb7cf81c8399bbd5c088b80ba78eaab1 Mon Sep 17 00:00:00 2001 From: Julien Masnada Date: Tue, 13 Feb 2024 14:35:58 +0100 Subject: [PATCH] Fixed invalid vector in distance calculation --- src/Mod/Draft/draftgeoutils/circles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftgeoutils/circles.py b/src/Mod/Draft/draftgeoutils/circles.py index 14ac11f41dcb..597e65319c1d 100644 --- a/src/Mod/Draft/draftgeoutils/circles.py +++ b/src/Mod/Draft/draftgeoutils/circles.py @@ -308,7 +308,7 @@ def circleFrom2PointsRadius(p1, p2, radius): return None p1_p2 = Part.LineSegment(p1, p2).toShape() - dist_p1p2 = DraftVecUtils.dist(p1, p1) + dist_p1p2 = DraftVecUtils.dist(p1, p2) mid = findMidpoint(p1_p2) if dist_p1p2 == 2*radius: