mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
add detach()
This commit is contained in:
parent
e3136204df
commit
1fee5c727e
@ -366,6 +366,18 @@ unstash() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: NodePathCollection::detach
|
||||||
|
// Access: Published
|
||||||
|
// Description: Detaches all NodePaths in the collection.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void NodePathCollection::
|
||||||
|
detach() {
|
||||||
|
for (int i = 0; i < get_num_paths(); i++) {
|
||||||
|
get_path(i).detach_node();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: NodePathCollection::output
|
// Function: NodePathCollection::output
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -62,6 +62,7 @@ PUBLISHED:
|
|||||||
void hide();
|
void hide();
|
||||||
void stash();
|
void stash();
|
||||||
void unstash();
|
void unstash();
|
||||||
|
void detach();
|
||||||
|
|
||||||
void output(ostream &out) const;
|
void output(ostream &out) const;
|
||||||
void write(ostream &out, int indent_level = 0) const;
|
void write(ostream &out, int indent_level = 0) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user