Explorar o código

Fixed a minor issue with gameplay-encoder where the heightmap generator was displaying incorrect percentage completion when generating more than a single heightmap.

Steve Grenier %!s(int64=13) %!d(string=hai) anos
pai
achega
de32f63afb
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      gameplay-encoder/src/Heightmap.cpp

+ 5 - 0
gameplay-encoder/src/Heightmap.cpp

@@ -40,6 +40,11 @@ void Heightmap::generate(const std::vector<std::string>& nodeIds, const char* fi
 {
     LOG(1, "Generating heightmap: %s...\n", filename);
 
+    // Initialize state variables
+    __processedHeightmapScanLines = 0;
+    __totalHeightmapScanlines = 0;
+    __failedRayCasts = 0;
+
     GPBFile* gpbFile = GPBFile::getInstance();
 
     // Lookup nodes in GPB file and compute a single bounding volume that encapsulates all meshes