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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user