mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +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]
|
return [p.Material for p in material.MaterialProfiles]
|
||||||
elif material.is_a("IfcMaterialConstituentSet"):
|
elif material.is_a("IfcMaterialConstituentSet"):
|
||||||
return [c.Material for c in material.MaterialConstituents]
|
return [c.Material for c in material.MaterialConstituents]
|
||||||
|
elif material.is_a("IfcMaterialList"):
|
||||||
|
return list(material.Materials)
|
||||||
|
|
||||||
|
|
||||||
def get_styles(element):
|
def get_styles(element):
|
||||||
|
|||||||
Reference in New Issue
Block a user