BIM: fix error on double-clicking on non-IFC objects
This commit is contained in:
@@ -615,7 +615,7 @@ def show(item, column=None):
|
||||
for storey in storeys:
|
||||
if storey != obj:
|
||||
storey.ViewObject.Visibility = False
|
||||
elif obj.IfcType == "IfcBuilding":
|
||||
elif hasattr(obj, "IfcType") and obj.IfcType == "IfcBuilding":
|
||||
# show all storeys
|
||||
storeys = [o for o in obj.OutList if Draft.getType(o) == "IfcBuildingStorey"]
|
||||
for storey in storeys:
|
||||
|
||||
Reference in New Issue
Block a user