mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix bug with displaying inherited psets by accident.
This commit is contained in:
@@ -41,7 +41,9 @@ class Data:
|
||||
@classmethod
|
||||
def psetqtos(cls, element, psets_only=False, qtos_only=False):
|
||||
results = []
|
||||
psetqtos = ifcopenshell.util.element.get_psets(element, psets_only=psets_only, qtos_only=qtos_only)
|
||||
psetqtos = ifcopenshell.util.element.get_psets(
|
||||
element, psets_only=psets_only, qtos_only=qtos_only, should_inherit=False
|
||||
)
|
||||
for name, data in psetqtos.items():
|
||||
results.append(
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user