mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
tweak comments
This commit is contained in:
parent
503028170f
commit
1e10f59943
@ -75,6 +75,11 @@ get_num_nodes() const {
|
|||||||
// referenced (bottom) node and get_num_nodes() - 1 is
|
// referenced (bottom) node and get_num_nodes() - 1 is
|
||||||
// the top node. This requires iterating through the
|
// the top node. This requires iterating through the
|
||||||
// path.
|
// path.
|
||||||
|
//
|
||||||
|
// Also see node(), which is a convenience function to
|
||||||
|
// return the same thing as get_node(0) (since the
|
||||||
|
// bottom node is the most important node in the
|
||||||
|
// NodePath, and is the one most frequently referenced).
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PandaNode *NodePath::
|
PandaNode *NodePath::
|
||||||
get_node(int index) const {
|
get_node(int index) const {
|
||||||
@ -496,10 +501,12 @@ remove_node() {
|
|||||||
// Access: Published
|
// Access: Published
|
||||||
// Description: Disconnects the referenced node from its parent, but
|
// Description: Disconnects the referenced node from its parent, but
|
||||||
// does not immediately delete it. The NodePath retains
|
// does not immediately delete it. The NodePath retains
|
||||||
// a pointer to the node. If there are no other
|
// a pointer to the node, and becomes a singleton
|
||||||
// instances to the node, this becomes a singleton
|
// NodePath.
|
||||||
// NodePath; otherwise, this NodePath becomes the same
|
//
|
||||||
// as another arbitrary instance.
|
// This should be called to detach a node from the scene
|
||||||
|
// graph, with the option of reattaching it later to the
|
||||||
|
// same parent or to a different parent.
|
||||||
//
|
//
|
||||||
// In practice, the only difference between
|
// In practice, the only difference between
|
||||||
// remove_node() and detach_node() is that remove_node()
|
// remove_node() and detach_node() is that remove_node()
|
||||||
|
@ -151,9 +151,6 @@ PUBLISHED:
|
|||||||
ET_not_found, // returned from a failed find() or similar function.
|
ET_not_found, // returned from a failed find() or similar function.
|
||||||
ET_removed, // remove_node() was previously called on this NodePath.
|
ET_removed, // remove_node() was previously called on this NodePath.
|
||||||
ET_fail, // general failure return from some function.
|
ET_fail, // general failure return from some function.
|
||||||
|
|
||||||
// Also see NodePathComponent::_next_key, which initializes
|
|
||||||
// itself to the last enumerated type here plus one.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
INLINE NodePath();
|
INLINE NodePath();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user