Ver código fonte

Use "wb" when writing binary STL exports, fixes #556.

Alexander Gessler 10 anos atrás
pai
commit
0fe8e739c3
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      code/STLExporter.cpp

+ 1 - 1
code/STLExporter.cpp

@@ -75,7 +75,7 @@ void ExportSceneSTLBinary(const char* pFile,IOSystem* pIOSystem, const aiScene*
 	STLExporter exporter(pFile, pScene, true);
 
 	// we're still here - export successfully completed. Write the file.
-	boost::scoped_ptr<IOStream> outfile (pIOSystem->Open(pFile,"wt"));
+	boost::scoped_ptr<IOStream> outfile (pIOSystem->Open(pFile,"wb"));
 	if(outfile == NULL) {
 		throw DeadlyExportError("could not open output .stl file: " + std::string(pFile));
 	}