diff options
author | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2020-09-11 14:38:28 -0400 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez1@gmail.com> | 2020-09-11 17:37:20 -0400 |
commit | d370ae9e1f0c5a15cba1631055f8dbefa701cb0d (patch) | |
tree | b848c32f547a7a3ab4e6b8011a544ed4231b0338 | |
parent | 4566db2a16e207192e3e7ce4ca30bf7ca8820a7b (diff) |
Disconnect item_rect_changed when removing a child of GraphEdit
-rw-r--r-- | scene/gui/graph_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 11b4c9e857..467d252c81 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)); } } |