From ec860725331f337ffaf878ce761fa6cf2ab60fef Mon Sep 17 00:00:00 2001 From: Denys Koch Date: Mon, 28 Aug 2017 14:34:39 +0200 Subject: [PATCH] Fix flawed BoundingSphere inequality operator --- include/osg/BoundingSphere | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/BoundingSphere b/include/osg/BoundingSphere index 0b62c2cdd..4502e4595 100644 --- a/include/osg/BoundingSphere +++ b/include/osg/BoundingSphere @@ -64,7 +64,7 @@ class BoundingSphereImpl inline bool valid() const { return _radius>=0.0; } inline bool operator == (const BoundingSphereImpl& rhs) const { return _center==rhs._center && _radius==rhs._radius; } - inline bool operator != (const BoundingSphereImpl& rhs) const { return _center!=rhs._center || _radius==rhs._radius; } + inline bool operator != (const BoundingSphereImpl& rhs) const { return _center!=rhs._center || _radius!=rhs._radius; } /** Set the bounding sphere to the given center/radius using floats. */ inline void set(const vec_type& center,value_type radius)