summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-29 12:07:25 +0200
committerGitHub <noreply@github.com>2021-06-29 12:07:25 +0200
commit8fb7a9f0233f61d7a18359523002ab38797f6853 (patch)
treeb3dbbea09c956d1d9bf61bf89df3b877d8678b91 /scene/3d
parent8597db0ac2368f8c62c11099faa273f1b9311548 (diff)
parent899e5f8685dc10df5b24a1b765803e19224be61c (diff)
Merge pull request #49719 from LightningAA/rename-node-is-ancestor-of
Rename `is_a_parent_of()` to `is_ancestor_of()`
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/remote_transform_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/remote_transform_3d.cpp b/scene/3d/remote_transform_3d.cpp
index a7b3a6f1ec..d5fb1fa6ab 100644
--- a/scene/3d/remote_transform_3d.cpp
+++ b/scene/3d/remote_transform_3d.cpp
@@ -34,7 +34,7 @@ void RemoteTransform3D::_update_cache() {
cache = ObjectID();
if (has_node(remote_node)) {
Node *node = get_node(remote_node);
- if (!node || this == node || node->is_a_parent_of(this) || this->is_a_parent_of(node)) {
+ if (!node || this == node || node->is_ancestor_of(this) || this->is_ancestor_of(node)) {
return;
}