Improve error message for Node.set_owner
This commit is contained in:
parent
cdd2313ba2
commit
0183340012
2 changed files with 3 additions and 3 deletions
|
|
@ -1906,7 +1906,7 @@ void Node::set_owner(Node *p_owner) {
|
|||
check = check->data.parent;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND(!owner_valid);
|
||||
ERR_FAIL_COND_MSG(!owner_valid, "Invalid owner. Owner must be an ancestor in the tree.");
|
||||
|
||||
_set_owner_nocheck(p_owner);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue