Fix bug with displaying inherited psets by accident.

This commit is contained in:
Dion Moult
2022-06-08 09:07:10 +10:00
parent bc734c263e
commit 1ec0e1ce19
2 changed files with 4 additions and 2 deletions
@@ -36,7 +36,7 @@ def get_psets(element, psets_only=False, qtos_only=False, should_inherit=True):
elif hasattr(element, "IsDefinedBy"):
element_type = ifcopenshell.util.element.get_type(element)
if element_type and should_inherit:
psets = get_psets(element_type)
psets = get_psets(element_type, psets_only=psets_only, qtos_only=qtos_only, should_inherit=False)
for relationship in element.IsDefinedBy:
if relationship.is_a("IfcRelDefinesByProperties"):
definition = relationship.RelatingPropertyDefinition