mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix bug where switching to an object with modifiers applied would double the effect of modifiers.
This commit is contained in:
@@ -53,11 +53,11 @@ class TestChangeObjectData(test.bim.bootstrap.NewFile):
|
||||
assert obj2.data == data2
|
||||
|
||||
|
||||
class TestClearDynamicVoids(test.bim.bootstrap.NewFile):
|
||||
class TestClearModifiers(test.bim.bootstrap.NewFile):
|
||||
def test_run(self):
|
||||
obj = bpy.data.objects.new("Object", bpy.data.meshes.new("Mesh"))
|
||||
obj.modifiers.new("IfcOpeningElement", "BOOLEAN")
|
||||
subject.clear_dynamic_voids(obj)
|
||||
subject.clear_modifiers(obj)
|
||||
assert len(obj.modifiers) == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user