mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix bug for getting psets of materials and profiles in IFC2X3
This commit is contained in:
@@ -121,7 +121,7 @@ def get_psets(element, psets_only=False, qtos_only=False, should_inherit=True):
|
||||
continue
|
||||
psets[definition.Name] = get_property_definition(definition)
|
||||
elif element.is_a("IfcMaterialDefinition") or element.is_a("IfcProfileDef"):
|
||||
for definition in element.HasProperties or []:
|
||||
for definition in getattr(element, "HasProperties", None) or []:
|
||||
if qtos_only:
|
||||
continue
|
||||
psets[definition.Name] = get_property_definition(definition)
|
||||
|
||||
Reference in New Issue
Block a user