Changeset 10365

Show
Ignore:
Timestamp:
06/19/09 13:00:33 (6 years ago)
Author:
robert
Message:

Added clears to various vectors being passed in to get*() methods.

Location:
OpenSceneGraph/trunk/src/osgViewer
Files:
2 modified

Legend:

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

    r10098 r10365  
    403403void CompositeViewer::getScenes(Scenes& scenes, bool onlyValid) 
    404404{ 
     405    scenes.clear(); 
     406 
    405407    typedef std::set<osgViewer::Scene*> SceneSet; 
    406408    SceneSet sceneSet; 
     
    424426void CompositeViewer::getViews(Views& views, bool onlyValid) 
    425427{ 
     428    views.clear(); 
     429 
    426430    for(RefViews::iterator vitr = _views.begin(); 
    427431        vitr != _views.end(); 
     
    434438void CompositeViewer::getAllThreads(Threads& threads, bool onlyActive) 
    435439{ 
     440    threads.clear(); 
     441 
    436442    OperationThreads operationThreads; 
    437443    getOperationThreads(operationThreads); 
  • OpenSceneGraph/trunk/src/osgViewer/Viewer.cpp

    r10364 r10365  
    995995void Viewer::getScenes(Scenes& scenes, bool onlyValid) 
    996996{ 
     997    scenes.clear(); 
    997998    scenes.push_back(_scene.get()); 
    998999} 
     
    10001001void Viewer::getViews(Views& views, bool onlyValid) 
    10011002{ 
     1003    views.clear(); 
    10021004    views.push_back(this); 
    10031005}