simgear/scene/model/ModelRegistry.cxx: avoid noisy diagnostic from OSG.

This commit is contained in:
Julian Smith 2019-09-01 15:07:07 +01:00
parent f407785f10
commit 7762bc2cad

View File

@ -608,7 +608,10 @@ osg::ref_ptr<osg::Node> DefaultCachePolicy::find(const string& fileName, const O
void DefaultCachePolicy::addToCache(const string& fileName, void DefaultCachePolicy::addToCache(const string& fileName,
osg::Node* node) osg::Node* node)
{ {
Registry::instance()->addEntryToObjectCache(fileName, node); /* Avoid default options=NULL in this call, as it provokes noisy diagnostic
in OSG. */
Options options;
Registry::instance()->addEntryToObjectCache(fileName, node, 0 /*timestamp*/, &options);
} }
// Optimizations we don't use: // Optimizations we don't use: