Added check against the Camera NodeMask to decide whether it's appropriate to test for events on that camera.

This commit is contained in:
Robert Osfield 2012-08-21 09:45:24 +00:00
parent 284f410436
commit 58b66be7b7

View File

@ -785,7 +785,8 @@ void CompositeViewer::eventTraversal()
++citr)
{
osg::Camera* camera = *citr;
if (camera->getView() &&
if ((camera->getNodeMask()!=0) &&
camera->getView() &&
camera->getAllowEventFocus() &&
camera->getRenderTargetImplementation()==osg::Camera::FRAME_BUFFER)
{