Moved the code referencing osg::BoundingBox::isValid() and
osg::BoundingSphere::isValid() across to use the valid() methods, the later being more consitent with other classes such as osg::ref_ptr<>.
This commit is contained in:
@@ -124,7 +124,7 @@ const bool LineSegment::intersectAndClip(Vec3& s,Vec3& e,const BoundingBox& bb)
|
||||
|
||||
const bool LineSegment::intersect(const BoundingBox& bb) const
|
||||
{
|
||||
if (!bb.isValid()) return false;
|
||||
if (!bb.valid()) return false;
|
||||
|
||||
Vec3 s=_s,e=_e;
|
||||
return intersectAndClip(s,e,bb);
|
||||
@@ -133,7 +133,7 @@ const bool LineSegment::intersect(const BoundingBox& bb) const
|
||||
|
||||
const bool LineSegment::intersect(const BoundingBox& bb,float& r1,float& r2) const
|
||||
{
|
||||
if (!bb.isValid()) return false;
|
||||
if (!bb.valid()) return false;
|
||||
|
||||
Vec3 s=_s,e=_e;
|
||||
bool result = intersectAndClip(s,e,bb);
|
||||
|
||||
Reference in New Issue
Block a user