From 12d1fd221ddcd02063d1bd5aa9658bdf7fcdc01c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 3 Feb 2025 13:44:42 +0500 Subject: [PATCH] Clean up orphaned curves creating new elevation/section annotations --- src/bonsai/bonsai/tool/drawing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/bonsai/tool/drawing.py b/src/bonsai/bonsai/tool/drawing.py index a442a47fbf..5345d073a6 100644 --- a/src/bonsai/bonsai/tool/drawing.py +++ b/src/bonsai/bonsai/tool/drawing.py @@ -1321,6 +1321,8 @@ class Drawing(bonsai.core.tool.Drawing): context=context, ifc_representation_class=None, ) + bpy.data.curves.remove(data) + assert element representation = ifcopenshell.util.representation.get_representation(element, context) assert representation