Fixed inheritance check for copying clear colour to slave cameras

This commit is contained in:
Robert Osfield 2007-02-20 20:56:03 +00:00
parent 416e6486f7
commit ffda14c669

View File

@ -83,7 +83,7 @@ void View::updateSlave(unsigned int i)
}
slave._camera->inheritCullSettings(*_camera);
if (_camera->getInheritanceMask() & osg::CullSettings::CLEAR_COLOR) slave._camera->setClearColor(_camera->getClearColor());
if (slave._camera->getInheritanceMask() & osg::CullSettings::CLEAR_COLOR) slave._camera->setClearColor(_camera->getClearColor());
}
bool View::addSlave(osg::Camera* camera, const osg::Matrix& projectionOffset, const osg::Matrix& viewOffset)