summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-14 07:21:32 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-21 10:20:08 +0000
commit755c70b871c659df2d7c3a003593f38775dd7b5d (patch)
tree9196b3da289e7ffc27e321ce6c4d2f97e0af7c95 /scene/main/node.cpp
parent07f076fa4f2896415993bb8e3fb42128423de0d2 (diff)
Rename Array.invert() to Array.reverse()
Does the same internally for List and Vector<>, which includes all PackedArray types.
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 933f67db68..b406d800dc 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -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));