浏览代码

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);
     }
 
+    // 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);