Tools/MeshExtractor:

* Fixed some crashes
* Added multithreading support, default to 4 threads.
* Added some command line arguments
This commit is contained in:
Subv
2012-09-29 12:49:14 -05:00
parent 3bea28e62c
commit 1a7f0658b2
9 changed files with 82 additions and 51 deletions
@@ -25,7 +25,11 @@ void LiquidHandler::HandleNewLiquid()
{
H2OHeader h = header[i];
if (h.LayerCount == 0)
{
// Need to fill in missing data with dummies.
MCNKData.push_back(MCNKLiquidData(NULL, H2ORenderMask()));
continue;
}
fseek(stream, chunk->Offset + h.OffsetInformation, SEEK_SET);
H2OInformation information = H2OInformation::Read(stream);