From a31dc612f41d7f070f6d8b043f41313b5c7f05fc Mon Sep 17 00:00:00 2001 From: aXu-AP <1621768+aXu-AP@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:02:28 +0200 Subject: [PATCH] Remove signal connections --- editor/plugins/polygon_2d_editor_plugin.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index 5669c4d65386..7b2d851c5877 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -59,19 +59,12 @@ Node2D *Polygon2DEditor::_get_node() const { void Polygon2DEditor::_set_node(Node *p_polygon) { CanvasItem *draw = Object::cast_to(uv_edit_draw); - if (node) { - node->disconnect("draw", callable_mp(draw, &CanvasItem::queue_redraw)); - node->disconnect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes)); - } node = Object::cast_to(p_polygon); _update_polygon_editing_state(); uv_edit_draw->queue_redraw(); if (node) { _menu_option(MODE_EDIT_UV); - // Whenever polygon gets redrawn, there's possible changes for the editor as well. - node->connect("draw", callable_mp(draw, &CanvasItem::queue_redraw)); - node->connect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes)); } }