Fixed check against Drawable::isCullingActive().

Removed old code intended to check the Geode parent of a Drawable to see if it's CullingActive is true as this was broken by the change osg::Drawable being derived from osg::Node rather than osg::Object.
This commit is contained in:
Robert Osfield
2016-01-27 10:06:33 +00:00
parent 7ae1421864
commit 229b833a5a

View File

@@ -992,7 +992,7 @@ void CullVisitor::apply(osg::Drawable& drawable)
}
}
if (!getNodePath().empty() && getNodePath().back()->isCullingActive() && isCulled(bb)) return;
if (drawable.isCullingActive() && isCulled(bb)) return;
if (_computeNearFar && bb.valid())