Rename is_a_parent_of() to is_ancestor_of()
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user