summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-08 11:20:50 +0200
committerGitHub <noreply@github.com>2019-08-08 11:20:50 +0200
commitf0ad034a1db01be35e532664fc5f65cf6a8ab83d (patch)
tree3050a605f7e1bff1f14edd72b7b36d036c9fefe6 /scene
parent5becb2e3229a1f04e7324fb4cb320fd1ec07f098 (diff)
parentae4a382dd2af3d62d087178ccda599c76e3813f2 (diff)
Merge pull request #31182 from mitchcurtis/remove_child
Improve error message in Node::remove_child()
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index f96e7a043d..1f0ccffab2 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1265,6 +1265,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 );