mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
Fix bug where existing meshes were not deleted when switching representations.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user