Commit 54f443f3 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed obj format for trailing WS

parent 61d98902
......@@ -141,6 +141,8 @@ void obj_reader::parse(std::istream &in, Mesh &mesh)
while (std::getline(in, line_s))
{
++line_nr;
while (line_s.size() > 0 && (line_s.back() == '\r' || line_s.back() == ' ' || line_s.back() == '\t'))
line_s.pop_back();
std::istringstream line(line_s);
std::string type;
......
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