Removed OSG_USE_BOUND and associated osg::Bound adapter class to avoid problems with BoundingBox::expandBy/expandByRadius() implementation choosing a null BoundingBox from
the osg::Bound class causing crashes.
This commit is contained in:
@@ -123,19 +123,11 @@ class OSG_EXPORT Drawable : public Node
|
||||
/** Set the initial bounding volume to use when computing the overall bounding volume.*/
|
||||
const BoundingBox& getInitialBound() const { return _initialBound; }
|
||||
|
||||
#ifdef OSG_USE_BOUND
|
||||
virtual Bound getBound() const
|
||||
{
|
||||
if(!_boundingSphereComputed) getBoundingBox();
|
||||
return Bound(_boundingSphere, _boundingBox);
|
||||
}
|
||||
#else
|
||||
inline const BoundingSphere& getBound() const
|
||||
{
|
||||
if(!_boundingSphereComputed) getBoundingBox();
|
||||
return _boundingSphere;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Get BoundingBox of Drawable.
|
||||
* If the BoundingBox is not up to date then its updated via an internal call to computeBond().
|
||||
|
||||
Reference in New Issue
Block a user