mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
refine comments
This commit is contained in:
parent
0740cb0449
commit
8446af5e3e
@ -296,8 +296,11 @@ find_all_paths_to(PandaNode *node) const {
|
|||||||
// Function: NodePath::reparent_to
|
// Function: NodePath::reparent_to
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description: Removes the referenced node of the NodePath from its
|
// Description: Removes the referenced node of the NodePath from its
|
||||||
// current parent and attaches it to the referenced node of
|
// current parent and attaches it to the referenced node
|
||||||
// the indicated NodePath.
|
// of the indicated NodePath.
|
||||||
|
//
|
||||||
|
// If the destination NodePath is empty, this is the
|
||||||
|
// same thing as detach_node().
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void NodePath::
|
void NodePath::
|
||||||
reparent_to(const NodePath &other, int sort) {
|
reparent_to(const NodePath &other, int sort) {
|
||||||
@ -356,6 +359,13 @@ wrt_reparent_to(const NodePath &other, int sort) {
|
|||||||
// This does not change the NodePath itself, but does
|
// This does not change the NodePath itself, but does
|
||||||
// return a new NodePath that reflects the new instance
|
// return a new NodePath that reflects the new instance
|
||||||
// node.
|
// node.
|
||||||
|
//
|
||||||
|
// If the destination NodePath is empty, this creates a
|
||||||
|
// new instance which is not yet parented to any node.
|
||||||
|
// A new instance of this sort cannot easily be
|
||||||
|
// differentiated from other similar instances, but it
|
||||||
|
// is nevertheless a different instance and it will
|
||||||
|
// return a different get_id() value.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
NodePath NodePath::
|
NodePath NodePath::
|
||||||
instance_to(const NodePath &other, int sort) const {
|
instance_to(const NodePath &other, int sort) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user