You can now copy a material list

This commit is contained in:
Dion Moult
2024-05-25 15:13:36 +10:00
parent d85f9af790
commit 16c5fd56ca
2 changed files with 13 additions and 0 deletions
@@ -63,6 +63,8 @@ def copy_material(file: ifcopenshell.file, material: ifcopenshell.entity_instanc
return new
elif material.is_a("IfcMaterialProfile"):
return _copy_material_with_inverses(file, material)
elif material.is_a("IfcMaterialList"):
return _copy_material_with_inverses(file, material)
def _copy_material_with_inverses(file, material):