Merge pull request #52672 from KoBeWi/GraphError

Fix error when moving graph node
This commit is contained in:
Rémi Verschelde 2021-09-15 13:22:54 +02:00 committed by GitHub
commit ed9fd36276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}