Commit 6a045b5c authored by Jan Möbius's avatar Jan Möbius

Obj writer: Fix OBJ writer bug file extension removal (Thanks to Katharina...

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

(cherry picked from commit 4cfe7578)
parent afc5101c
Pipeline #1046 passed with stage
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment