Added .get()'s to fix compilation when ref_ptr<> type conversion is disabled
This commit is contained in:
@@ -102,7 +102,7 @@ bool PickEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionA
|
||||
{
|
||||
if (ea.getEventType()==osgGA::GUIEventAdapter::PUSH)
|
||||
{
|
||||
_drawablesOnPush.insert( hitr->drawable );
|
||||
_drawablesOnPush.insert( hitr->drawable.get() );
|
||||
}
|
||||
else if (ea.getEventType()==osgGA::GUIEventAdapter::MOVE)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ bool PickEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionA
|
||||
}
|
||||
else if (ea.getEventType()==osgGA::GUIEventAdapter::RELEASE)
|
||||
{
|
||||
if (_drawablesOnPush.find(hitr->drawable) != _drawablesOnPush.end())
|
||||
if (_drawablesOnPush.find(hitr->drawable.get()) != _drawablesOnPush.end())
|
||||
doOperation();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user