From cebb9f6103f14a1849361b7b30626a04e9c56e53 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 24 Oct 2012 16:10:38 +0000 Subject: [PATCH] Fixed bug in click_to_run feature where events would be handled by hidden labels --- src/osgPresentation/PickEventHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPresentation/PickEventHandler.cpp b/src/osgPresentation/PickEventHandler.cpp index e9f5e8e23..b624f70ff 100644 --- a/src/osgPresentation/PickEventHandler.cpp +++ b/src/osgPresentation/PickEventHandler.cpp @@ -50,6 +50,8 @@ PickEventHandler::PickEventHandler(const osgPresentation::KeyPosition& keyPos,bo bool PickEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa, osg::Object*, osg::NodeVisitor* nv) { + if (ea.getHandled()) return false; + switch(ea.getEventType()) { case(osgGA::GUIEventAdapter::MOVE):