Bläddra i källkod

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

Alexander Gessler 10 år sedan
förälder
incheckning
aae0f7e7b1
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);