BIM: fix index error in ifc_viewproviders.py

Fixes #21912
This commit is contained in:
Roy-043
2025-06-19 10:25:45 +02:00
committed by Yorik van Havre
parent 826f4789b5
commit b11ebe6e40

View File

@@ -224,7 +224,7 @@ class ifc_vp_object:
"""Recursively gets the children only used by this object"""
children = []
for child in obj.OutList:
if len(child.InList) == 1 and child.InList[1] == obj:
if len(child.InList) == 1 and child.InList[0] == obj:
children.append(child)
children.extend(self.getOwnChildren(child))
return children