mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Removing a material now also removes material properties
This commit is contained in:
@@ -40,6 +40,10 @@ class Usecase:
|
||||
self.file.remove(inverse)
|
||||
elif inverse.is_a("IfcRelAssociatesMaterial"):
|
||||
self.file.remove(inverse)
|
||||
elif inverse.is_a("IfcMaterialProperties"):
|
||||
for prop in inverse.Properties or []:
|
||||
self.file.remove(prop)
|
||||
self.file.remove(inverse)
|
||||
elif inverse.is_a("IfcMaterialDefinitionRepresentation"):
|
||||
for representation in inverse.Representations:
|
||||
for item in representation.Items:
|
||||
|
||||
Reference in New Issue
Block a user