From 37a62b4096d7fbfc5295259bcd7977cb713868f8 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 5 May 2017 10:42:48 -0300 Subject: [PATCH] Draft: Fixed snapping to intersection of Arch axes --- src/Mod/Draft/DraftSnap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/DraftSnap.py b/src/Mod/Draft/DraftSnap.py index ac89844869..045e83637f 100644 --- a/src/Mod/Draft/DraftSnap.py +++ b/src/Mod/Draft/DraftSnap.py @@ -336,6 +336,7 @@ class Snapper: elif Draft.getType(obj) == "Axis": for edge in obj.Shape.Edges: snaps.extend(self.snapToEndpoints(edge)) + snaps.extend(self.snapToIntersection(edge)) elif Draft.getType(obj) == "Mesh": # for meshes we only snap to vertices @@ -814,7 +815,7 @@ class Snapper: if self.lastObj[0]: obj = FreeCAD.ActiveDocument.getObject(self.lastObj[0]) if obj: - if obj.isDerivedFrom("Part::Feature"): + if obj.isDerivedFrom("Part::Feature") or (Draft.getType(obj) == "Axis"): if (not self.maxEdges) or (len(obj.Shape.Edges) <= self.maxEdges): for e in obj.Shape.Edges: # get the intersection points