Arch: Added steel profiles to structs

This commit is contained in:
Yorik van Havre
2013-07-24 17:40:35 -03:00
parent 7eac7d20da
commit 0f0ef9eb99
3 changed files with 139 additions and 42 deletions

View File

@@ -258,7 +258,7 @@ class Snapper:
elif (Draft.getType(obj) == "Structure") and not oldActive:
# special snapping for struct: only to its base point (except when CTRL is pressed)
if obj.Base:
for edge in o.Base.Shape.Edges:
for edge in obj.Base.Shape.Edges:
snaps.extend(self.snapToEndpoints(edge))
snaps.extend(self.snapToMidpoint(edge))
snaps.extend(self.snapToPerpendicular(edge,lastpoint))