mirror of
https://github.com/godotengine/godot.git
synced 2024-12-14 23:27:24 +00:00
Improve error message in Node::remove_child()
This commit is contained in:
parent
7126654eaf
commit
ae4a382dd2
@ -1269,6 +1269,7 @@ void Node::remove_child(Node *p_child) {
|
||||
}
|
||||
}
|
||||
|
||||
ERR_EXPLAIN("Cannot remove child node " + p_child->to_string() + " as it is not in our list of children");
|
||||
ERR_FAIL_COND(idx == -1);
|
||||
//ERR_FAIL_COND( p_child->data.blocked > 0 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user