浏览代码

3DSExporter: export materials first, then meshes. Our own importer requires this.

Alexander Gessler 10 年之前
父节点
当前提交
aae0f7e7b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/3DSExporter.cpp

+ 1 - 1
code/3DSExporter.cpp

@@ -188,8 +188,8 @@ Discreet3DSExporter:: Discreet3DSExporter(boost::shared_ptr<IOStream> outfile, c
 
 	{
 		ChunkWriter chunk(writer, Discreet3DS::CHUNK_OBJMESH);
-		WriteMeshes();
 		WriteMaterials();
+		WriteMeshes();
 
 		{
 			ChunkWriter chunk(writer, Discreet3DS::CHUNK_MASTER_SCALE);