Arch: Fixed bug in Site

This commit is contained in:
Yorik van Havre
2018-10-25 11:59:22 -03:00
parent 5f34122514
commit ba1174f793

View File

@@ -281,7 +281,7 @@ class _CommandSite:
siteobj = []
warning = False
for obj in sel :
if Draft.getType(obj) == "Building":
if (Draft.getType(obj) == "Building") or (hasattr(obj,"IfcRole") and obj.IfcRole == "Building"):
siteobj.append(obj)
else :
if link == True :