Changeset 8779

Show
Ignore:
Timestamp:
08/19/08 19:41:55
Author:
robert
Message:

Added checked against an empty _kdNodes list before commensing with intersection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osg/KdTree.cpp

    r8707 r8779  
    756756bool KdTree::intersect(const osg::Vec3& start, const osg::Vec3& end, LineSegmentIntersections& intersections) const 
    757757{ 
     758    if (_kdNodes.empty()) return false; 
     759 
    758760    int numIntersectionsBefore = intersections.size(); 
    759761