From 9139e8acb8271ba78577e2dbb0f6efa0333ffa8c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 14 Jun 2016 16:42:06 +0100 Subject: [PATCH] Added {} brackets around OSG_DEBUG usage to avoid issues with marco's expanding if else. --- src/osgDB/ObjectCache.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osgDB/ObjectCache.cpp b/src/osgDB/ObjectCache.cpp index 856b3d434..872172395 100644 --- a/src/osgDB/ObjectCache.cpp +++ b/src/osgDB/ObjectCache.cpp @@ -61,9 +61,13 @@ osg::Object* ObjectCache::getFromObjectCache(const std::string& fileName, const { osg::ref_ptr o = itr->first.second; if (o.valid()) + { OSG_DEBUG<<"Found "<getOptionString()<< "' in ObjectCache "<second.first.get(); } else return 0; @@ -78,9 +82,13 @@ osg::ref_ptr ObjectCache::getRefFromObjectCache(const std::string& { osg::ref_ptr o = itr->first.second; if (o.valid()) + { OSG_DEBUG<<"Found "<getOptionString()<< "' in ObjectCache "<second.first.get(); } else return 0;