瀏覽代碼

FBX Export: add missing 0 value to file footer.

Tommy 7 年之前
父節點
當前提交
a58f8e1c1a
共有 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);