From 331bbacf3db7b864b8b289b2de26b6cb181d5342 Mon Sep 17 00:00:00 2001 From: Andrej Date: Tue, 16 May 2017 22:18:47 +0200 Subject: [PATCH] Fixed build error in ObjExporter :: GetMaterialLibFileName --- code/ObjExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ObjExporter.cpp b/code/ObjExporter.cpp index 82f1c98c0..bffb35671 100644 --- a/code/ObjExporter.cpp +++ b/code/ObjExporter.cpp @@ -127,7 +127,7 @@ 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) - filename = filename.substr(0, lastdot); + return filename.substr(0, lastdot) + MaterialExt; return filename + MaterialExt; }