diff options
author | kobewi <kobewi4e@gmail.com> | 2021-09-14 16:09:33 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-09-14 16:09:33 +0200 |
commit | 645dc40cba722093b0b94ef4e5e3164796353ffb (patch) | |
tree | b53e9bfd17c65dbdc74a5e355ae76ce350f7cc9b /scene/gui | |
parent | 1cec7057bfb2eea0f1c3ac5ab3731f279002e244 (diff) |
Fix error when moving graph node
Diffstat (limited to 'scene/gui')
-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); } |