fix osg loader error messages caused by trailing white space on MATERIAL line

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7121 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b65771490ad7a164d0d8c0348948f8cb37117a82
Former-commit-id: 4c5d9ea24aa97de0123536f9e99e178e1020ad6c
This commit is contained in:
iobyte 2020-06-01 21:02:52 +00:00
parent bebec19544
commit cea343fec4

View file

@ -160,6 +160,10 @@ osg::Node* ReaderWriterACC::readObject(std::istream& stream, FileData& fileData,
MaterialData mat;
mat.readMaterial(stream);
fileData.addMaterial(mat);
// read any trailing whitespace
std::string line;
std::getline(stream, line);
}
else if (token == "OBJECT")
{