mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Avoid creating an unnecessary intermediate node when loading .egg models (see forum thread 16039)
This commit is contained in:
parent
872362bd3e
commit
6bb87ca9c5
@ -213,7 +213,11 @@ build_graph() {
|
||||
|
||||
// Now build up the scene graph.
|
||||
_root = new ModelRoot(_data->get_egg_filename(), _data->get_egg_timestamp());
|
||||
make_node(_data, _root);
|
||||
|
||||
EggGroupNode::const_iterator ci;
|
||||
for (ci = _data->begin(); ci != _data->end(); ++ci) {
|
||||
make_node(*ci, _root);
|
||||
}
|
||||
|
||||
reparent_decals();
|
||||
start_sequences();
|
||||
|
Loading…
x
Reference in New Issue
Block a user