浏览代码

Disconnect item_rect_changed when removing a child of GraphEdit

Wilson E. Alvarez 5 年之前
父节点
当前提交
2b7c9d9070
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/graph_edit.cpp

+ 1 - 0
scene/gui/graph_edit.cpp

@@ -275,6 +275,7 @@ void GraphEdit::remove_child_notify(Node *p_child) {
 	if (gn) {
 		gn->disconnect("offset_changed", this, "_graph_node_moved");
 		gn->disconnect("raise_request", this, "_graph_node_raised");
+		gn->disconnect("item_rect_changed", connections_layer, "update");
 	}
 }