Revert "CanvasGroup: return empty bounding box without children."
Returning somehow valid data in case it is used unchecked was
probably not a good idea. Better fix the code using it^^
This fixes #1421.
This reverts commit 3525fff8d0.
This commit is contained in:
@@ -220,10 +220,7 @@ namespace canvas
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
osg::BoundingBox Group::getTransformedBounds(const osg::Matrix& m) const
|
osg::BoundingBox Group::getTransformedBounds(const osg::Matrix& m) const
|
||||||
{
|
{
|
||||||
// Default to a bounding box with size 0x0 and the origin defined by the
|
osg::BoundingBox bb;
|
||||||
// matrix.
|
|
||||||
osg::BoundingBox bb(m.getTrans(), m.getTrans());
|
|
||||||
|
|
||||||
if( !_transform.valid() )
|
if( !_transform.valid() )
|
||||||
{
|
{
|
||||||
warnTransformExpired("getTransformedBounds");
|
warnTransformExpired("getTransformedBounds");
|
||||||
|
|||||||
Reference in New Issue
Block a user