Commit 07464e40 authored by Janis Born's avatar Janis Born
Browse files

fix possible parser error in GeometryDataLoadStoreOBJ when input file contains...

fix possible parser error in GeometryDataLoadStoreOBJ when input file contains mixed spaces and tabs
parent 0c93d51c
......@@ -59,12 +59,10 @@ namespace
{
std::vector<IndexTuple> indices;
std::vector<std::string> vertices = ACGL::Base::StringOperations::split(_string, ' ');
for(std::vector<std::string>::const_iterator it1 = vertices.begin();
it1 != vertices.end();
++it1)
std::stringstream stream(_string);
std::string vertexString;
while(stream >> vertexString)
{
const std::string& vertexString = *it1;
std::vector<std::string> componentsString = ACGL::Base::StringOperations::split(vertexString, '/', false);
IndexTuple indexTuple;
......
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