diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-08-07 21:16:54 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-08-07 21:16:54 +0200 |
commit | c332eab86481e95fa24c967b9de14293ae34e29e (patch) | |
tree | 255013623c2819f221a573217ed90f82766b456f | |
parent | 7126654eafc5a50a782bfbcdcfcb243807662eab (diff) | |
download | redot-engine-c332eab86481e95fa24c967b9de14293ae34e29e.tar.gz |
Improve error message in Node::get_path()
-rw-r--r-- | scene/main/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index caa0da5d1f..b74d6849c1 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1668,6 +1668,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) |