MakeFastGeometryVisitor: fix handling of Geometries that are directly in the scene graph not attached to a Geode

This commit is contained in:
scrawl
2017-01-20 23:01:04 +01:00
parent 833f37ea57
commit 4a05caf4f7
2 changed files with 10 additions and 26 deletions

View File

@@ -509,7 +509,7 @@ class OSGUTIL_EXPORT Optimizer
CheckGeometryVisitor(Optimizer* optimizer=0):
BaseOptimizerVisitor(optimizer, CHECK_GEOMETRY) {}
virtual void apply(osg::Geode& geode) { checkGeode(geode); }
virtual void apply(osg::Geometry& geom);
void checkGeode(osg::Geode& geode);
@@ -523,9 +523,7 @@ class OSGUTIL_EXPORT Optimizer
MakeFastGeometryVisitor(Optimizer* optimizer=0):
BaseOptimizerVisitor(optimizer, MAKE_FAST_GEOMETRY) {}
virtual void apply(osg::Geode& geode) { checkGeode(geode); }
void checkGeode(osg::Geode& geode);
virtual void apply(osg::Geometry& geom);
};