From a13b66135f826688acb860fc7f0f0c911435645d Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 3 Feb 2017 17:33:58 +0100 Subject: [PATCH] Fix handling of in-scenegraph drawables in osgUtil::Simplifier --- include/osgUtil/Simplifier | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/osgUtil/Simplifier b/include/osgUtil/Simplifier index 4b19ec81a..27d719ba8 100644 --- a/include/osgUtil/Simplifier +++ b/include/osgUtil/Simplifier @@ -97,16 +97,9 @@ class OSGUTIL_EXPORT Simplifier : public osg::NodeVisitor return getSampleRatio()<1.0; } - virtual void apply(osg::Geode& geode) + virtual void apply(osg::Geometry& geom) { - for(unsigned int i=0;iasGeometry(); - if (geometry) - { - simplify(*geometry); - } - } + simplify(geom); } /** simply the geometry.*/