Переглянути джерело

Merge pull request #1819 from mesilliac/fbx_export_missing_footer_value

FBX Export: add missing 0 value to file footer.
Kim Kulling 7 роки тому
батько
коміт
4697152e71
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      code/FBXExporter.cpp

+ 5 - 0
code/FBXExporter.cpp

@@ -247,6 +247,11 @@ void FBXExporter::WriteBinaryFooter()
         outfile->Write("\x00", 1, 1);
         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
     // now the file version again
     {
     {
         StreamWriterLE outstream(outfile);
         StreamWriterLE outstream(outfile);