mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
add EggData::merge
This commit is contained in:
parent
7481abba57
commit
baf7c22921
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user