Fixed bug in addSlave

This commit is contained in:
Robert Osfield 2007-11-03 10:32:18 +00:00
parent b7a26ae56a
commit 6ad176042c

View File

@ -175,7 +175,7 @@ bool View::addSlave(osg::Camera* camera, const osg::Matrix& projectionOffset, co
if (_camera.valid())
{
for(unsigned int i=0; _camera->getNumChildren(); ++i)
for(unsigned int i=0; i<_camera->getNumChildren(); ++i)
{
camera->addChild(_camera->getChild(i));
}