pgraph: Clarify in find() documentation that this node not included

This commit is contained in:
rdb 2021-08-30 14:03:17 +02:00
parent 8c01f7faff
commit 2cc1633a77

View File

@ -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 {