Browse Source

Obj-Exporter: fix build.

Kim Kulling 8 years ago
parent
commit
04f908aa4c
2 changed files with 3 additions and 5 deletions
  1. 2 4
      code/ObjExporter.cpp
  2. 1 1
      code/ObjExporter.h

+ 2 - 4
code/ObjExporter.cpp

@@ -122,8 +122,7 @@ std::string ObjExporter :: GetMaterialLibName()
 }
 }
 
 
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
-std::string ObjExporter :: GetMaterialLibFileName()
-{
+std::string ObjExporter::GetMaterialLibFileName() {
     // Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl
     // Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl
     size_t lastdot = filename.find_last_of('.');
     size_t lastdot = filename.find_last_of('.');
     if (lastdot != std::string::npos)
     if (lastdot != std::string::npos)
@@ -133,8 +132,7 @@ std::string ObjExporter :: GetMaterialLibFileName()
 }
 }
 
 
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
-void ObjExporter :: WriteHeader(std::ostringstream& out)
-{
+void ObjExporter :: WriteHeader(std::ostringstream& out) {
     out << "# File produced by Open Asset Import Library (http://www.assimp.sf.net)" << endl;
     out << "# File produced by Open Asset Import Library (http://www.assimp.sf.net)" << endl;
     out << "# (assimp v" << aiGetVersionMajor() << '.' << aiGetVersionMinor() << '.' << aiGetVersionRevision() << ")" << endl  << endl;
     out << "# (assimp v" << aiGetVersionMajor() << '.' << aiGetVersionMinor() << '.' << aiGetVersionRevision() << ")" << endl  << endl;
 }
 }

+ 1 - 1
code/ObjExporter.h

@@ -105,7 +105,7 @@ private:
     void AddNode(const aiNode* nd, const aiMatrix4x4& mParent);
     void AddNode(const aiNode* nd, const aiMatrix4x4& mParent);
 
 
 private:
 private:
-    const std::string filename;
+    std::string filename;
     const aiScene* const pScene;
     const aiScene* const pScene;
 
 
     std::vector<aiVector3D> vp, vn, vt;
     std::vector<aiVector3D> vp, vn, vt;