From d105a25f75c168b86a4a5d308e59ca06051723dd Mon Sep 17 00:00:00 2001 From: nblock Date: Mon, 14 Mar 2022 17:31:40 -0400 Subject: [PATCH] Fixed a simple issue causing faces to not be exported. --- main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index da0d3bc..ed07141 100644 --- a/main.cpp +++ b/main.cpp @@ -580,15 +580,14 @@ int main(int argc, char* argv[]) { if (modelhash == "") break; + submesh->name = modelhash; int fileSize = 0; hash.clear(); - pkgID.clear(); hash = modelhash; getFile(); memcpy((char*)&sfhash32, data + 0x8, 4); memcpy((void*)&scale, data + 0x3C, 4); hash.clear(); - pkgID.clear(); hash = uint32ToHexStr(sfhash32); fileSize = getFile(); uint32_t indexBuffer, vertexBuffer, uvBuffer, vcBuffer; @@ -724,8 +723,7 @@ int main(int argc, char* argv[]) int getFile() { - if (pkgID == "") - pkgID = getPkgID(hash); + pkgID = getPkgID(hash); Package pkg(pkgID, packagesPath); int fileSize; data = pkg.getEntryData(hash, fileSize);