From e2ec462fab37189ffa15809506bce83d4c283cd3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 20 May 2003 08:47:21 +0000 Subject: [PATCH] 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. --- src/osgProducer/Viewer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/osgProducer/Viewer.cpp b/src/osgProducer/Viewer.cpp index 2536c5cda..f257bf2ce 100644 --- a/src/osgProducer/Viewer.cpp +++ b/src/osgProducer/Viewer.cpp @@ -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()); } }