瀏覽代碼

fixed a minor bug

Josh Yelon 17 年之前
父節點
當前提交
eb5a5a1856
共有 1 個文件被更改,包括 2 次插入2 次删除
  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()) {
         grutil_cat.error() << "GeoMipTerrain: root node unexpectedly mangled!\n";
         return true;
-        total += 1;
       }
+      total += 1;
     }
   }
   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;
   }