#2094. Deleting materials now also deletes Blender material if not used for a style

This commit is contained in:
Dion Moult
2022-03-21 12:04:51 +11:00
parent ea530858bd
commit c478e5bf1b
10 changed files with 114 additions and 18 deletions
+5
View File
@@ -297,6 +297,11 @@ def the_material_name_exists(name) -> bpy.types.Material:
return obj
@then(parsers.parse('the material "{name}" does not exist'))
def the_material_name_does_not_exist(name):
assert bpy.data.materials.get(name) is None, "Material exists"
@then("an IFC file does not exist")
def an_ifc_file_does_not_exist():
ifc = IfcStore.get_file()