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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user