Skip to content

Commit

Permalink
Added check against the Camera NodeMask to decide whether it's approp…
Browse files Browse the repository at this point in the history
…riate to test for events on that camera.
  • Loading branch information
robertosfield committed Aug 21, 2012
1 parent c078223 commit be0fd40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osgViewer/CompositeViewer.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit be0fd40

Please sign in to comment.