projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b89a3c
)
Fixed build error in ObjExporter :: GetMaterialLibFileName
author
Andrej
<Andrej@HOMEWIN10>
Tue, 16 May 2017 20:18:47 +0000
(22:18 +0200)
committer
Andrej
<Andrej@HOMEWIN10>
Tue, 16 May 2017 20:18:47 +0000
(22:18 +0200)
code/ObjExporter.cpp
patch
|
blob
|
history
diff --git
a/code/ObjExporter.cpp
b/code/ObjExporter.cpp
index
82f1c98
..
bffb356
100644
(file)
--- 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;
}