Fix #2968. Deletions are no longer postponed. Should fix or reveal a lot of sync errors.

This commit is contained in:
Dion Moult
2023-04-13 18:38:28 +10:00
parent c4c3fc1bfa
commit cf640a971d
8 changed files with 29 additions and 54 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ class Drawing(blenderbim.core.tool.Drawing):
@classmethod
def delete_drawing_elements(cls, elements):
for element in elements:
tool.Ifc.delete(element)
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
obj = tool.Ifc.get_object(element)
if obj:
obj_data = obj.data