From d370ae9e1f0c5a15cba1631055f8dbefa701cb0d Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Fri, 11 Sep 2020 14:38:28 -0400 Subject: [PATCH] Disconnect item_rect_changed when removing a child of GraphEdit --- scene/gui/graph_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 11b4c9e8579..467d252c815 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -262,6 +262,7 @@ void GraphEdit::remove_child_notify(Node *p_child) { if (gn) { gn->disconnect("offset_changed", callable_mp(this, &GraphEdit::_graph_node_moved)); gn->disconnect("raise_request", callable_mp(this, &GraphEdit::_graph_node_raised)); + gn->disconnect("item_rect_changed", callable_mp((CanvasItem *)connections_layer, &CanvasItem::update)); } }