From 229b833a5a60c2b6d570a591f6fc2ba9736b9316 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 27 Jan 2016 10:06:33 +0000 Subject: [PATCH] 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. --- src/osgUtil/CullVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index 019f42a24..f5242209a 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -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())