Skip to content

Commit

Permalink
Merge pull request assimp#1275 from ab4d/master
Browse files Browse the repository at this point in the history
Fixed build error in ObjExporter :: GetMaterialLibFileName
  • Loading branch information
kimkulling authored May 17, 2017
2 parents 04f908a + 331bbac commit eba06f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ObjExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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;
}
Expand Down

0 comments on commit eba06f0

Please sign in to comment.