From 6cfd15e819c50319640947ffbe948cc76076e621 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 14 Mar 2025 16:41:36 +0500 Subject: [PATCH] Fix mistake in 64f51d7 --- src/ifcopenshell-python/ifcopenshell/util/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/system.py b/src/ifcopenshell-python/ifcopenshell/util/system.py index ef84be03c5..833d85a941 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/system.py +++ b/src/ifcopenshell-python/ifcopenshell/util/system.py @@ -66,7 +66,7 @@ def get_system_elements(system: ifcopenshell.entity_instance) -> list[ifcopenshe def get_element_systems(element: ifcopenshell.entity_instance) -> list[ifcopenshell.entity_instance]: results = [] for rel in element.HasAssignments: - if rel.is_a("IfcRelAssignsToGroup"): + if not rel.is_a("IfcRelAssignsToGroup"): continue group = rel.RelatingGroup if not group.is_a("IfcSystem") or group.is_a() in ("IfcStructuralAnalysisModel", "IfcZone"):