Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina Breininger for the patch)

(cherry picked from commit 4cfe75788a5374978555322c596ecdea9909516a)
This commit is contained in:
Jan Möbius
2016-04-05 15:43:32 +02:00
parent afc5101cc3
commit 6a045b5c5e
2 changed files with 3 additions and 1 deletions

View File

@@ -58,6 +58,8 @@
<ul>
<li>PLY Reader: Fixed CR LF newline handling for binary file headers.</li>
<li>Obj writer: Fix OBJ material files and face color (Thanks to Sven-Kristofer Pilz for the patch) </li>
<li>Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina Breininger for the patch) </li>
</ul>
<b>Tools</b>

View File

@@ -115,7 +115,7 @@ write(const std::string& _filename, BaseExporter& _be, Options _opt, std::stream
}
//remove the file extension
dot = _filename.find_last_of(".");
dot = objName_.find_last_of(".");
if(dot != std::string::npos)
objName_ = objName_.substr(0,dot);