add EggData::merge

This commit is contained in:
David Rose 2003-02-12 00:48:20 +00:00
parent 7481abba57
commit baf7c22921
2 changed files with 13 additions and 0 deletions

View File

@ -157,6 +157,18 @@ read(istream &in) {
return (egg_error_count() == 0);
}
////////////////////////////////////////////////////////////////////
// Function: EggData::merge
// Access: Public
// Description: Appends the other egg structure to the end of this
// one. The other egg structure is invalidated.
////////////////////////////////////////////////////////////////////
void EggData::
merge(EggData &other) {
other.set_coordinate_system(get_coordinate_system());
steal_children(other);
}
////////////////////////////////////////////////////////////////////
// Function: EggData::load_externals

View File

@ -54,6 +54,7 @@ public:
bool read(Filename filename);
bool read(istream &in);
void merge(EggData &other);
bool load_externals(const DSearchPath &searchpath = DSearchPath());
int collapse_equivalent_textures();