HI Anthony,
> Like you am I left wondering if this quick fix is a complete solution
> so will need to think some more about the topic before commit a fix.
I have done some testing and some thinking about the issue and feel
that the fix you suggested is a good solution, the code I've checked
into svn/trunk is essential the same, only adds a little text in
explanation:
// check loaded archives.
AvailableArchiveIterator aaitr(_archiveCache, _archiveCacheMutex);
for(;aaitr.valid();++aaitr)
{
ReaderWriter::ReadResult rr = readFunctor.doRead(*aaitr);
if (readFunctor.isValid(rr)) return rr;
else
{
// don't pass on FILE_NOT_FOUND results as we don't want
to prevent non archive plugins that haven't been
// loaded yet from getting a chance to test for the
presence of the file.
if (rr.status()!=ReaderWriter::ReadResult::FILE_NOT_FOUND)
results.push_back(rr);
}
}
Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org