Fix bug where existing meshes were not deleted when switching representations.

This commit is contained in:
Dion Moult
2021-11-05 17:57:05 +11:00
parent 07bee4acfa
commit 3e52d93db0
5 changed files with 46 additions and 4 deletions
@@ -82,6 +82,13 @@ class TestCreateDynamicVoids(NewFile):
assert modifier.use_self is True
class TestDeleteData(NewFile):
def test_run(self):
data = bpy.data.meshes.new("Mesh")
subject.delete_data(data)
assert not bpy.data.meshes.get("Mesh")
class TestDoesObjectHaveMeshWithFaces(NewFile):
def test_empties_return_false(self):
obj = bpy.data.objects.new("Object", None)