canvas::Element: Fix bounding box calculation of groups
This commit is contained in:
@@ -488,7 +488,7 @@ namespace canvas
|
|||||||
osg::BoundingBox transformed;
|
osg::BoundingBox transformed;
|
||||||
const osg::BoundingBox& bb = _drawable->getBound();
|
const osg::BoundingBox& bb = _drawable->getBound();
|
||||||
for(int i = 0; i < 4; ++i)
|
for(int i = 0; i < 4; ++i)
|
||||||
transformed.expandBy( m * bb.corner(i) );
|
transformed.expandBy( bb.corner(i) * m );
|
||||||
|
|
||||||
return transformed;
|
return transformed;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user