Changed the osgUI behaviour so that events are set to be handled by Widgets that have focus even if they don't directly use them.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14425 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -391,6 +391,8 @@ PropertyAdjustmentCallback::PropertyAdjustmentCallback(const PropertyAdjustmentC
|
||||
|
||||
bool PropertyAdjustmentCallback::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter&, osg::Object* object, osg::NodeVisitor*)
|
||||
{
|
||||
if (ea.getHandled()) return false;
|
||||
|
||||
osgVolume::VolumeTile* tile = dynamic_cast<osgVolume::VolumeTile*>(object);
|
||||
osgVolume::Layer* layer = tile ? tile->getLayer() : 0;
|
||||
osgVolume::Property* property = layer ? layer->getProperty() : 0;
|
||||
|
||||
Reference in New Issue
Block a user