mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Remove warning on owner re-assignment
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user