Fix MergeGeometryVisitor to work with a Group instead of Geode

This commit is contained in:
scrawl
2017-02-24 01:05:57 +01:00
parent a918306a99
commit e0f7d3241a
2 changed files with 19 additions and 40 deletions

View File

@@ -532,10 +532,10 @@ class OSGUTIL_EXPORT Optimizer
return _targetMaximumNumberOfVertices;
}
virtual void apply(osg::Geode& geode) { mergeGeode(geode); }
virtual void apply(osg::Group& group) { mergeGroup(group); traverse(group); }
virtual void apply(osg::Billboard&) { /* don't do anything*/ }
bool mergeGeode(osg::Geode& geode);
bool mergeGroup(osg::Group& group);
static bool geometryContainsSharedArrays(osg::Geometry& geom);