Moved the ImagePager update to before the main scene graph update traversal

This commit is contained in:
Robert Osfield 2009-11-20 14:40:58 +00:00
parent d9c1f45231
commit 255f6dda41

View File

@ -87,18 +87,17 @@ void Scene::updateSceneGraph(osg::NodeVisitor& updateVisitor)
getDatabasePager()->updateSceneGraph((*updateVisitor.getFrameStamp()));
}
if (getSceneData())
{
updateVisitor.setImageRequestHandler(getImagePager());
getSceneData()->accept(updateVisitor);
}
if (getImagePager())
{
// synchronize changes required by the DatabasePager thread to the scene graph
getImagePager()->updateSceneGraph(*(updateVisitor.getFrameStamp()));
}
if (getSceneData())
{
updateVisitor.setImageRequestHandler(getImagePager());
getSceneData()->accept(updateVisitor);
}
}