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)); } }