Added warning message

This commit is contained in:
Robert Osfield
2008-08-22 16:37:56 +00:00
parent f5105510f3
commit 8c8421e7a2

View File

@@ -755,7 +755,11 @@ bool KdTree::build(BuildOptions& options, osg::Geometry* geometry)
bool KdTree::intersect(const osg::Vec3& start, const osg::Vec3& end, LineSegmentIntersections& intersections) const
{
if (_kdNodes.empty()) return false;
if (_kdNodes.empty())
{
osg::notify(osg::NOTICE)<<"Warning: _kdTree is empty"<<std::endl;
return false;
}
int numIntersectionsBefore = intersections.size();