Browse Source

FBX Export: add missing 0 value to file footer.

Tommy 7 years ago
parent
commit
a58f8e1c1a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      code/FBXExporter.cpp

+ 5 - 0
code/FBXExporter.cpp

@@ -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);