Added better error reporting and handling when <key> tag contents are not valid.

This commit is contained in:
Robert Osfield
2011-09-20 10:59:18 +00:00
parent 845d33b353
commit 0b7dbc68c9

View File

@@ -1148,7 +1148,8 @@ bool ReaderWriterP3DXML::getKeyPositionInner(osgDB::XmlNode*cur, osgPresentation
}
else
{
OSG_NOTICE<<"Warning: unreconginized key sequence '"<<key<<"'"<<std::endl;
OSG_NOTICE<<"Warning: invalid key used in <key>"<<key<<"</key>, ignoring tag."<<std::endl;
return false;
}
keyPosition.set(keyValue,x,y);