Deleting a material set from a type now also purges usages from type instances

This commit is contained in:
Dion Moult
2021-08-08 20:56:31 +10:00
parent b696d302f9
commit 7abccbd713
3 changed files with 26 additions and 5 deletions
@@ -157,7 +157,7 @@ class UnassignMaterial(bpy.types.Operator):
self.file,
**{"product": self.file.by_id(obj.BIMObjectProperties.ifc_definition_id)},
)
Data.load(IfcStore.get_file(), obj.BIMObjectProperties.ifc_definition_id)
Data.purge()
return {"FINISHED"}