Added check against the Camera NodeMask to decide whether it's appropriate to test for events on that camera.
This commit is contained in:
parent
284f410436
commit
58b66be7b7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user