add detach()

This commit is contained in:
David Rose 2003-06-09 22:41:35 +00:00
parent e3136204df
commit 1fee5c727e
2 changed files with 13 additions and 0 deletions

View File

@ -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
// Access: Published

View File

@ -62,6 +62,7 @@ PUBLISHED:
void hide();
void stash();
void unstash();
void detach();
void output(ostream &out) const;
void write(ostream &out, int indent_level = 0) const;