From 04f908aa4c1995c9cef8afdc7ba80c74c3068a2b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 17 May 2017 10:13:07 +0200 Subject: [PATCH] Obj-Exporter: fix build. --- code/ObjExporter.cpp | 6 ++---- code/ObjExporter.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/code/ObjExporter.cpp b/code/ObjExporter.cpp index 82f1c98..d510976 100644 --- a/code/ObjExporter.cpp +++ b/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 size_t lastdot = filename.find_last_of('.'); 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 << "# (assimp v" << aiGetVersionMajor() << '.' << aiGetVersionMinor() << '.' << aiGetVersionRevision() << ")" << endl << endl; } diff --git a/code/ObjExporter.h b/code/ObjExporter.h index e31bf07..754202d 100644 --- a/code/ObjExporter.h +++ b/code/ObjExporter.h @@ -105,7 +105,7 @@ private: void AddNode(const aiNode* nd, const aiMatrix4x4& mParent); private: - const std::string filename; + std::string filename; const aiScene* const pScene; std::vector vp, vn, vt; -- 2.7.4