Merge pull request #1275 from ab4d/master
Fixed build error in ObjExporter :: GetMaterialLibFileNamepull/1188/merge
commit
eba06f0c8b
|
@ -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
|
// 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)
|
||||||
filename = filename.substr(0, lastdot);
|
return filename.substr(0, lastdot) + MaterialExt;
|
||||||
|
|
||||||
return filename + MaterialExt;
|
return filename + MaterialExt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue