#2094. Removing materials now removes material definitions too for styles

This commit is contained in:
Dion Moult
2022-03-19 22:11:39 +11:00
parent 2049bdd976
commit fdd03d7294
5 changed files with 173 additions and 3 deletions
@@ -124,7 +124,7 @@ class Usecase:
)
def get_rel_associates_material(self, material):
if self.file.schema == "IFC2X3":
if self.file.schema == "IFC2X3" or material.is_a("IfcMaterialList"):
rel = [
r
for r in self.file.by_type("IfcRelAssociatesMaterial")