diff --git a/pandatool/src/xfile/xFileNode.I b/pandatool/src/xfile/xFileNode.I index 2dc4495e2a..f8bb7eceb6 100644 --- a/pandatool/src/xfile/xFileNode.I +++ b/pandatool/src/xfile/xFileNode.I @@ -15,3 +15,25 @@ // panda3d-general@lists.sourceforge.net . // //////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////// +// Function: XFileNode::get_num_children +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE int XFileNode:: +get_num_children() const { + return _children.size(); +} + +//////////////////////////////////////////////////////////////////// +// Function: XFileNode::get_child +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE XFileNode *XFileNode:: +get_child(int n) const { + nassertr(n >= 0 && n < (int)_children.size(), NULL); + return _children[n]; +} diff --git a/pandatool/src/xfile/xFileNode.h b/pandatool/src/xfile/xFileNode.h index c6eaf6dda9..5e445dd537 100644 --- a/pandatool/src/xfile/xFileNode.h +++ b/pandatool/src/xfile/xFileNode.h @@ -23,6 +23,7 @@ #include "typedReferenceCount.h" #include "pointerTo.h" #include "namable.h" +#include "notify.h" #include "pvector.h" #include "pmap.h"