Draft: Snap to BuildingPart base points

This commit is contained in:
Yorik van Havre
2018-07-25 20:25:11 -03:00
parent 78fea67043
commit 98af9aabd9

View File

@@ -303,7 +303,10 @@ class Snapper:
if Draft.getType(obj) == "Polygon":
# special snapping for polygons: add the center
snaps.extend(self.snapToPolygon(obj))
elif Draft.getType(obj) == "BuildingPart":
# special snapping for Arch building parts: add the location
snaps.append([obj.Placement.Base,'endpoint',self.toWP(obj.Pacement.Base)])
if (not self.maxEdges) or (len(shape.Edges) <= self.maxEdges):
if "Edge" in comp:
# we are snapping to an edge