From facbdcf43b100fa596fcd466affe78c9bb80587b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 1 Oct 2003 13:12:25 +0000 Subject: [PATCH] Added addEntryToObjectCache method to osgDB::Registry --- include/osgDB/Registry | 2 ++ src/osgDB/Registry.cpp | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) 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 "<