BIM: fix error on double-clicking on non-IFC objects

This commit is contained in:
Furgo
2025-02-10 14:09:41 +01:00
committed by Yorik van Havre
parent 340f446654
commit dc422e1f35

View File

@@ -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: