From 2cc1633a772cd635bb8d95d420badf1f258b67d4 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 30 Aug 2021 14:03:17 +0200 Subject: [PATCH] pgraph: Clarify in find() documentation that this node not included --- panda/src/pgraph/nodePath.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index 5c7dbbbdaf..3e2430aa3c 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -309,6 +309,8 @@ get_sort(Thread *current_thread) const { * Searches for a node below the referenced node that matches the indicated * string. Returns the shortest match found, if any, or an empty NodePath if * no match can be found. + * + * The referenced node itself is not considered in the search. */ NodePath NodePath:: find(const string &path) const { @@ -349,6 +351,8 @@ find_path_to(PandaNode *node) const { /** * Returns the complete set of all NodePaths that begin with this NodePath and * can be extended by path. The shortest paths will be listed first. + * + * The referenced node itself is not considered in the search. */ NodePathCollection NodePath:: find_all_matches(const string &path) const {