From 7762bc2cad01426cd8f5402582b8e53e6644b5c3 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 1 Sep 2019 15:07:07 +0100 Subject: [PATCH] simgear/scene/model/ModelRegistry.cxx: avoid noisy diagnostic from OSG. --- simgear/scene/model/ModelRegistry.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index 0087cbbf..e128d390 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -608,7 +608,10 @@ osg::ref_ptr DefaultCachePolicy::find(const string& fileName, const O void DefaultCachePolicy::addToCache(const string& fileName, 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: