Merge pull request #1819 from mesilliac/fbx_export_missing_footer_value

FBX Export: add missing 0 value to file footer.
pull/1811/head
Kim Kulling 2018-03-01 12:58:54 +01:00 committed by GitHub
commit 4697152e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,11 @@ void FBXExporter::WriteBinaryFooter()
outfile->Write("\x00", 1, 1);
}
// not sure what this is, but it seems to always be 0 in modern files
for (size_t i = 0; i < 4; ++i) {
outfile->Write("\x00", 1, 1);
}
// now the file version again
{
StreamWriterLE outstream(outfile);