Added ability to replace callback objects via lua scripts to allow one to override callbacks.
Added fallback for osgGA::Widget::Extents.
This commit is contained in:
@@ -306,5 +306,6 @@ void Widget::createGraphicsImplementation()
|
||||
|
||||
osg::BoundingSphere Widget::computeBound() const
|
||||
{
|
||||
return osg::BoundingSphere(_extents);
|
||||
if (_extents.valid()) return osg::BoundingSphere(_extents);
|
||||
else return osg::Group::computeBound();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user