Fix #3951. mats selector now supports IfcMaterialList.

This commit is contained in:
Dion Moult
2023-11-01 22:48:31 +11:00
parent 8eeb212003
commit 7c694e5b3e
@@ -435,6 +435,8 @@ def get_materials(element, should_inherit=True):
return [p.Material for p in material.MaterialProfiles]
elif material.is_a("IfcMaterialConstituentSet"):
return [c.Material for c in material.MaterialConstituents]
elif material.is_a("IfcMaterialList"):
return list(material.Materials)
def get_styles(element):