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:
Robert Osfield
2014-03-07 11:09:25 +00:00
parent 9319350176
commit 9b299dc4b9
4 changed files with 43 additions and 23 deletions

View File

@@ -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();
}