LineSegmentIntersector: respect the 'cullingActive' flag when testing drawable bounding box

This commit is contained in:
scrawl 2017-09-03 14:15:36 +00:00
parent 55f5335f18
commit 6048c1fbdc

View File

@ -500,7 +500,7 @@ void LineSegmentIntersector::intersect(osgUtil::IntersectionVisitor& iv, osg::Dr
if (reachedLimit()) return;
osg::Vec3d s(_start), e(_end);
if ( !intersectAndClip( s, e, drawable->getBoundingBox() ) ) return;
if ( drawable->isCullingActive() && !intersectAndClip( s, e, drawable->getBoundingBox() ) ) return;
if (iv.getDoDummyTraversal()) return;