diff --git a/components/sceneutil/optimizer.cpp b/components/sceneutil/optimizer.cpp index e7d5b3a40..b86744599 100644 --- a/components/sceneutil/optimizer.cpp +++ b/components/sceneutil/optimizer.cpp @@ -800,6 +800,13 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n isOperationPermissibleForObject(&node); } +void Optimizer::RemoveRedundantNodesVisitor::apply(osg::LOD& lod) +{ + // don't remove any direct children of the LOD because they are used to define each LOD level. + for (unsigned int i=0; i