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:
@@ -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());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user