Added setting of block_on_vsync of both CameraGroup and all the Camera's that it contains.

This commit is contained in:
Robert Osfield 2004-07-26 14:25:41 +00:00
parent 31a664a24d
commit f6274d0f20

View File

@ -762,7 +762,12 @@ bool ViewerEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActio
}
case 'v' :
{
_cg->setBlockOnVsync(!_cg->getBlockOnVsync());
bool block = !_cg->getBlockOnVsync();
_cg->setBlockOnVsync(block);
for(unsigned int i=0;i<_cg->getNumberOfCameras();++i)
{
_cg->getCamera(i)->setBlockOnVsync(block);
}
return true;
}