Merge pull request #341 from scrawl/cullingactive_fix

LineSegmentIntersector: respect the 'cullingActive' flag for bounding box check
This commit is contained in:
OpenSceneGraph git repository
2017-09-04 08:36:49 +01:00
committed by GitHub

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;