Moved the ImagePager update to before the main scene graph update traversal
This commit is contained in:
parent
d9c1f45231
commit
255f6dda41
@ -87,18 +87,17 @@ void Scene::updateSceneGraph(osg::NodeVisitor& updateVisitor)
|
|||||||
getDatabasePager()->updateSceneGraph((*updateVisitor.getFrameStamp()));
|
getDatabasePager()->updateSceneGraph((*updateVisitor.getFrameStamp()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getSceneData())
|
|
||||||
{
|
|
||||||
updateVisitor.setImageRequestHandler(getImagePager());
|
|
||||||
getSceneData()->accept(updateVisitor);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (getImagePager())
|
if (getImagePager())
|
||||||
{
|
{
|
||||||
// synchronize changes required by the DatabasePager thread to the scene graph
|
// synchronize changes required by the DatabasePager thread to the scene graph
|
||||||
getImagePager()->updateSceneGraph(*(updateVisitor.getFrameStamp()));
|
getImagePager()->updateSceneGraph(*(updateVisitor.getFrameStamp()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getSceneData())
|
||||||
|
{
|
||||||
|
updateVisitor.setImageRequestHandler(getImagePager());
|
||||||
|
getSceneData()->accept(updateVisitor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user