diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index 5669c4d65386..106c2da1bab5 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -60,8 +60,8 @@ 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->disconnect("draw", callable_mp(draw, &CanvasItem::queue_redraw)); + //node->disconnect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes)); } node = Object::cast_to(p_polygon); @@ -70,8 +70,8 @@ void Polygon2DEditor::_set_node(Node *p_polygon) { 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)); + //node->connect("draw", callable_mp(draw, &CanvasItem::queue_redraw)); + //node->connect("draw", callable_mp(this, &Polygon2DEditor::_update_available_modes)); } }