Fix bug where switching to an object with modifiers applied would double the effect of modifiers.

This commit is contained in:
Dion Moult
2021-10-22 16:23:36 +11:00
parent 9ffe92eae5
commit c551275db2
12 changed files with 40 additions and 46 deletions
+2 -3
View File
@@ -35,10 +35,9 @@ class Geometry(blenderbim.core.tool.Geometry):
obj.data = data
@classmethod
def clear_dynamic_voids(cls, obj):
def clear_modifiers(cls, obj):
for modifier in obj.modifiers:
if modifier.type == "BOOLEAN" and "IfcOpeningElement" in modifier.name:
obj.modifiers.remove(modifier)
obj.modifiers.remove(modifier)
@classmethod
def create_dynamic_voids(cls, obj):