diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-15 13:22:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 13:22:54 +0200 |
commit | ed9fd362765b7504e5604b2878fb39a7397275c5 (patch) | |
tree | 947ebeed1395e4f626a9b3d7b9419350d3a2ba55 /scene | |
parent | 0a8e137c615137dad05b404a88f27ab232d0aca2 (diff) | |
parent | 645dc40cba722093b0b94ef4e5e3164796353ffb (diff) |
Merge pull request #52672 from KoBeWi/GraphError
Fix error when moving graph node
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/graph_edit.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index cabae9feb2..b9b02b1427 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -356,16 +356,6 @@ void GraphEdit::_graph_node_raised(Node *p_gn) { } else { gn->raise(); } - int first_not_comment = 0; - for (int i = 0; i < get_child_count(); i++) { - GraphNode *gn2 = Object::cast_to<GraphNode>(get_child(i)); - if (gn2 && !gn2->is_comment()) { - first_not_comment = i; - break; - } - } - - move_child(connections_layer, first_not_comment); emit_signal(SNAME("node_selected"), p_gn); } |