mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix #3951. mats selector now supports IfcMaterialList.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user