mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
#2094. Removing materials now removes material definitions too for styles
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user