Added missing return value
This commit is contained in:
parent
c996c545b7
commit
e2e0897a1b
@ -60,6 +60,8 @@ bool Locator::computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::V
|
||||
corners.push_back(cornerNDC);
|
||||
}
|
||||
|
||||
if (corners.empty()) return false;
|
||||
|
||||
|
||||
for(Corners::iterator itr = corners.begin();
|
||||
itr != corners.end();
|
||||
@ -70,6 +72,8 @@ bool Locator::computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::V
|
||||
topRight.x() = osg::maximum( topRight.x(), itr->x());
|
||||
topRight.y() = osg::maximum( topRight.y(), itr->y());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user