Draft: Snap to BuildingPart base points
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user