From b11ebe6e405bd6cfa9922982041a5debf5bfa066 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:25:45 +0200 Subject: [PATCH] BIM: fix index error in ifc_viewproviders.py Fixes #21912 --- src/Mod/BIM/nativeifc/ifc_viewproviders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/nativeifc/ifc_viewproviders.py b/src/Mod/BIM/nativeifc/ifc_viewproviders.py index ee9d67b4b0..3f50e774fe 100644 --- a/src/Mod/BIM/nativeifc/ifc_viewproviders.py +++ b/src/Mod/BIM/nativeifc/ifc_viewproviders.py @@ -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