Browse Source

fixed a minor bug

Josh Yelon 17 years ago
parent
commit
eb5a5a1856
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/grutil/geoMipTerrain.cxx

+ 2 - 2
panda/src/grutil/geoMipTerrain.cxx

@@ -455,12 +455,12 @@ root_flattened() {
       if (_blocks[tx][ty].get_node(1) != _root.node()) {
       if (_blocks[tx][ty].get_node(1) != _root.node()) {
         grutil_cat.error() << "GeoMipTerrain: root node unexpectedly mangled!\n";
         grutil_cat.error() << "GeoMipTerrain: root node unexpectedly mangled!\n";
         return true;
         return true;
-        total += 1;
       }
       }
+      total += 1;
     }
     }
   }
   }
   if (total != _root.node()->get_num_children()) {
   if (total != _root.node()->get_num_children()) {
-    grutil_cat.error() << "GeoMipTerrain: root node unexpectedly mangled!\n";
+    grutil_cat.error() << "GeoMipTerrain: root node unexpectedly mangled: " << total << " vs " << (_root.node()->get_num_children()) << "\n";
     return true;
     return true;
   }    
   }