Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Fixed a simple issue causing faces to not be exported.
Browse files Browse the repository at this point in the history
  • Loading branch information
nblock committed Mar 14, 2022
1 parent 7d7dc66 commit d105a25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d105a25

Please sign in to comment.