From dff95c6a153bcf2daa6eef74fd75f36cabcda581 Mon Sep 17 00:00:00 2001 From: aXu-AP <1621768+aXu-AP@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:16:29 +0200 Subject: [PATCH] Cleanup --- editor/plugins/polygon_2d_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index eb89db63a5a0..82e2370e94d9 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -118,6 +118,9 @@ void Polygon2DEditor::_notification(int p_what) { uv_edit_draw->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), SNAME("Tree"))); bone_scroll->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), SNAME("Tree"))); } break; + case NOTIFICATION_PREDELETE: { + uv_edit->queue_free(); + } break; } }