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:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user