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:
parent
bebec19544
commit
cea343fec4
1 changed files with 4 additions and 0 deletions
|
@ -160,6 +160,10 @@ osg::Node* ReaderWriterACC::readObject(std::istream& stream, FileData& fileData,
|
||||||
MaterialData mat;
|
MaterialData mat;
|
||||||
mat.readMaterial(stream);
|
mat.readMaterial(stream);
|
||||||
fileData.addMaterial(mat);
|
fileData.addMaterial(mat);
|
||||||
|
|
||||||
|
// read any trailing whitespace
|
||||||
|
std::string line;
|
||||||
|
std::getline(stream, line);
|
||||||
}
|
}
|
||||||
else if (token == "OBJECT")
|
else if (token == "OBJECT")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue