From ff5d67b66ccfb58f0637775c8bf66039bb81d260 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 5 Nov 2018 19:28:20 -0200 Subject: [PATCH] Draft: fixed snapping to WPProxies --- src/Mod/Draft/DraftSnap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Draft/DraftSnap.py b/src/Mod/Draft/DraftSnap.py index 4f3368d759..44003ffeda 100644 --- a/src/Mod/Draft/DraftSnap.py +++ b/src/Mod/Draft/DraftSnap.py @@ -361,6 +361,10 @@ class Snapper: # for points we only snap to points snaps.extend(self.snapToEndpoints(obj.Points)) + elif Draft.getType(obj) == "WorkingPlaneProxy": + # snap to the center of WPProxies + snaps.append([obj.Placement.Base,'endpoint',self.toWP(obj.Placement.Base)]) + # updating last objects list if not self.lastObj[1]: self.lastObj[1] = obj.Name