diff --git a/include/osgDB/Registry b/include/osgDB/Registry index 24a70f12a..294f0e1d7 100644 --- a/include/osgDB/Registry +++ b/include/osgDB/Registry @@ -191,6 +191,8 @@ class OSGDB_EXPORT Registry : public osg::Referenced /** Remove all objects in the cache regardless of having external references or expiry times.*/ void clearObjectCache(); + void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0); + /** get the attached library with specified name.*/ DynamicLibrary* getLibrary(const std::string& fileName); diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index b2493f694..7f29db32f 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -1165,7 +1165,7 @@ ReaderWriter::ReadResult Registry::readObject(const std::string& fileName,bool u { // update cache with new entry. notify(INFO)<<"Adding to cache object "<