Added fix for case when Renderer is assigned to a Camera that has now View
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15141 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
e878e53cab
commit
ef6f2dbcfd
@ -533,10 +533,14 @@ void Renderer::updateSceneView(osgUtil::SceneView* sceneView)
|
|||||||
sceneView->getCullVisitor()->setImageRequestHandler(imagePager);
|
sceneView->getCullVisitor()->setImageRequestHandler(imagePager);
|
||||||
|
|
||||||
|
|
||||||
if (view->getFrameStamp())
|
if (view && view->getFrameStamp())
|
||||||
{
|
{
|
||||||
(*sceneView->getFrameStamp()) = *(view->getFrameStamp());
|
(*sceneView->getFrameStamp()) = *(view->getFrameStamp());
|
||||||
}
|
}
|
||||||
|
else if (state->getFrameStamp())
|
||||||
|
{
|
||||||
|
(*sceneView->getFrameStamp()) = *(state->getFrameStamp());
|
||||||
|
}
|
||||||
|
|
||||||
osg::DisplaySettings* ds = _camera->getDisplaySettings() ? _camera->getDisplaySettings() :
|
osg::DisplaySettings* ds = _camera->getDisplaySettings() ? _camera->getDisplaySettings() :
|
||||||
((view &&view->getDisplaySettings()) ? view->getDisplaySettings() : osg::DisplaySettings::instance().get());
|
((view &&view->getDisplaySettings()) ? view->getDisplaySettings() : osg::DisplaySettings::instance().get());
|
||||||
|
Loading…
Reference in New Issue
Block a user