Fixed build error in ObjExporter :: GetMaterialLibFileName

pull/1275/head
Andrej 2017-05-16 22:18:47 +02:00
parent 2b89a3cffc
commit 331bbacf3d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}