Added FinishedObjectReadCallback to ObjectWrapper which allows

wrappers to register their own handling of post processing of objects once they have been read.
This commit is contained in:
Robert Osfield
2010-10-28 14:04:07 +00:00
parent b622a99178
commit f1b660997b
2 changed files with 18 additions and 0 deletions

View File

@@ -102,6 +102,14 @@ bool ObjectWrapper::read( InputStream& is, osg::Object& obj )
<< _name << "::" << (*itr)->getName() << std::endl;
readOK = false;
}
for ( FinishedObjectReadCallbackList::iterator itr=_finishedObjectReadCallbacks.begin();
itr!=_finishedObjectReadCallbacks.end();
++itr )
{
(*itr)->objectRead(is, obj);
}
return readOK;
}