Rename Array.invert() to Array.reverse()

Does the same internally for List and Vector<>, which includes all
PackedArray types.
This commit is contained in:
Marcel Admiraal
2021-03-14 07:21:32 +00:00
parent 07f076fa4f
commit 755c70b871
35 changed files with 57 additions and 57 deletions

View File

@@ -1690,7 +1690,7 @@ NodePath Node::get_path_to(const Node *p_node) const {
n = n->data.parent;
}
path.invert();
path.reverse();
return NodePath(path, false);
}
@@ -1711,7 +1711,7 @@ NodePath Node::get_path() const {
n = n->data.parent;
}
path.invert();
path.reverse();
data.path_cache = memnew(NodePath(path, true));