Browse Source

fix bug with polysets attached to lods

David Rose 16 years ago
parent
commit
06005cc440
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/egg2pg/eggLoader.cxx

+ 1 - 1
panda/src/egg2pg/eggLoader.cxx

@@ -1584,7 +1584,7 @@ separate_switches(EggNode *egg_node) {
   bool parent_has_switch = false;
   bool parent_has_switch = false;
   if (egg_node->is_of_type(EggGroup::get_class_type())) {
   if (egg_node->is_of_type(EggGroup::get_class_type())) {
     EggGroup *egg_group = DCAST(EggGroup, egg_node);
     EggGroup *egg_group = DCAST(EggGroup, egg_node);
-    parent_has_switch = egg_group->get_switch_flag() || egg_group->has_lod();
+    parent_has_switch = egg_group->get_switch_flag();
   }
   }
 
 
   if (egg_node->is_of_type(EggGroupNode::get_class_type())) {
   if (egg_node->is_of_type(EggGroupNode::get_class_type())) {