mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
sequence only if multiple textures
This commit is contained in:
parent
e766a6bb62
commit
d9283e2049
@ -248,10 +248,13 @@ run() {
|
||||
EggGroup *group = new EggGroup();
|
||||
_data.add_child(group);
|
||||
|
||||
// Make the group a sequence, as a convenience. If we view the
|
||||
// egg file directly we can see all the tiles one at a time.
|
||||
// If we have more than one tile, make the group a sequence, as a
|
||||
// convenience. If we view the egg file directly we can see all the
|
||||
// tiles one at a time.
|
||||
if (_texture_names.size() > 1) {
|
||||
group->set_switch_flag(true);
|
||||
group->set_switch_fps(2.0);
|
||||
}
|
||||
|
||||
EggVertexPool *vpool = new EggVertexPool("vpool");
|
||||
group->add_child(vpool);
|
||||
|
Loading…
x
Reference in New Issue
Block a user