diff options
Diffstat (limited to 'scene')
-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 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) |