Commit bea466ce authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] reenabled remembering last picked

parent a4f29091
......@@ -156,20 +156,13 @@ void WPickHandler::pick( osgViewer::View* view, const osgGA::GUIEventAdapter& ea
pickPos[2] = hitr->getLocalIntersectPoint()[2];
WPickInfo pickInfo( extractSuitableName( hitr ), pickPos, WPickInfo::NONE );
// std::ostringstream os;
// os << "Object \"" << extractSuitableName( hitr ) << "\"" << std::endl;
// m_lastPick = extractSuitableName( hitr );
// os << " local coords vertex(" << hitr->getLocalIntersectPoint() << ")" << " normal(" << hitr->getLocalIntersectNormal() << ")"
// << std::endl;
// os << " world coords vertex(" << hitr->getWorldIntersectPoint() << ")" << " normal(" << hitr->getWorldIntersectNormal() << ")"
// << std::endl;
// m_hitResult += os.str();
m_hitResult = pickInfo;
osg::Vec3 globalHit = hitr->getWorldIntersectPoint();
m_hitPosGlobal = wmath::WPosition( globalHit[0], globalHit[1], globalHit[2] );
m_lastPick = pickInfo;
}
m_pickSignal( getHitResult() );
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment