From d9283e20496650b722590a5890491bd017948d37 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 26 Jun 2002 23:22:34 +0000 Subject: [PATCH] sequence only if multiple textures --- pandatool/src/eggprogs/eggTextureCards.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pandatool/src/eggprogs/eggTextureCards.cxx b/pandatool/src/eggprogs/eggTextureCards.cxx index e39e969109..28215629c4 100644 --- a/pandatool/src/eggprogs/eggTextureCards.cxx +++ b/pandatool/src/eggprogs/eggTextureCards.cxx @@ -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. - group->set_switch_flag(true); - group->set_switch_fps(2.0); + // 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);