summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-08 14:05:49 +0200
committerGitHub <noreply@github.com>2019-08-08 14:05:49 +0200
commit4d7439adaafd33b09e9b6e521e0d6af669b1e2d9 (patch)
treeebb53242d6447c7b7cd28767a4b6e17ee052bdc3 /scene
parent636233035070b4e6a9f8ffa00fc9ff937a3a5b95 (diff)
parentc332eab86481e95fa24c967b9de14293ae34e29e (diff)
Merge pull request #31185 from mitchcurtis/get_path
Improve error message in Node::get_path()
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 1f0ccffab2..beb7356bc7 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1665,6 +1665,7 @@ NodePath Node::get_path_to(const Node *p_node) const {
NodePath Node::get_path() const {
+ ERR_EXPLAIN("Cannot get path of node as it is not in a scene tree");
ERR_FAIL_COND_V(!is_inside_tree(), NodePath());
if (data.path_cache)