Fixed sizeof bug when reading old model header
This commit is contained in:
parent
c4be9b1cba
commit
6fa14aff85
|
@ -58,9 +58,10 @@ namespace SHADE
|
|||
|
||||
file.seekg(0);
|
||||
|
||||
//TODO Update to new mesh header with anim count when animation saving is done
|
||||
file.read(
|
||||
reinterpret_cast<char*>(&model.header),
|
||||
sizeof(SHModelAssetHeader)
|
||||
reinterpret_cast<char*>(&model.header.meshCount),
|
||||
sizeof(model.header.meshCount)
|
||||
);
|
||||
|
||||
std::vector<SHMeshLoaderHeader> headers(model.header.meshCount);
|
||||
|
|
Loading…
Reference in New Issue