Remove warning on owner re-assignment
This commit is contained in:
parent
8ea4413a2c
commit
7b27cc91b1
1 changed files with 3 additions and 0 deletions
|
@ -1080,6 +1080,9 @@ void Node::get_owned_by(Node *p_by,List<Node*> *p_owned) {
|
|||
|
||||
void Node::_set_owner_nocheck(Node* p_owner) {
|
||||
|
||||
if (data.owner==p_owner)
|
||||
return;
|
||||
|
||||
ERR_FAIL_COND(data.owner);
|
||||
data.owner=p_owner;
|
||||
data.owner->data.owned.push_back( this );
|
||||
|
|
Loading…
Reference in a new issue