Show
Ignore:
Timestamp:
08/05/09 13:06:53 (4 years ago)
Author:
robert
Message:

Moved the updating and expiry of the Registry object cache from DatabasePager? into osgViewer::Viewer/CompositeViewer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/Scene.cpp

    r8633 r10520  
    7878} 
    7979 
     80void Scene::updateSceneGraph(osg::NodeVisitor& updateVisitor) 
     81{ 
     82    if (!_sceneData) return; 
     83 
     84    if (getSceneData()) 
     85    { 
     86        updateVisitor.setImageRequestHandler(getImagePager()); 
     87        getSceneData()->accept(updateVisitor); 
     88    } 
     89 
     90    if (getDatabasePager()) 
     91    { 
     92        // synchronize changes required by the DatabasePager thread to the scene graph 
     93        getDatabasePager()->updateSceneGraph((*updateVisitor.getFrameStamp())); 
     94    } 
     95 
     96    if (getImagePager()) 
     97    { 
     98        // synchronize changes required by the DatabasePager thread to the scene graph 
     99        getImagePager()->updateSceneGraph(*(updateVisitor.getFrameStamp())); 
     100    } 
     101 
     102 
     103} 
     104 
    80105 
    81106Scene* Scene::getScene(osg::Node* node)