Changed the fusion distance update code to use OsgCameraGroup::setDistanceDistance()

rather than going through the SceneView's by hand. This should ensure that values
are kept consistent betwen OsgCameraGroup and SceneView's.
This commit is contained in:
Robert Osfield
2003-05-20 08:47:21 +00:00
parent d156e259ef
commit e2ec462fab

View File

@@ -368,11 +368,7 @@ void Viewer::update()
osg::Matrix matrix = mm->getInverseMatrix();
CameraGroup::setViewByMatrix(Producer::Matrix(matrix.ptr()));
for(SceneHandlerList::iterator p=_shvec.begin(); p!=_shvec.end(); p++ )
{
(*p)->setFusionDistance(mm->getFusionDistanceMode(),mm->getFusionDistanceValue());
}
setFusionDistance(mm->getFusionDistanceMode(),mm->getFusionDistanceValue());
}
}