Show
Ignore:
Timestamp:
06/01/07 21:01:06 (7 years ago)
Author:
robert
Message:

Improved the handling of the -p path option

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgsimulation/osgsimulation.cpp

    r6796 r6799  
    278278    while (arguments.read("--screen", screenNum) || arguments.read("-s", screenNum)) viewer.setUpViewOnSingleScreen(screenNum); 
    279279 
     280    std::string pathfile; 
     281    while (arguments.read("-p",pathfile)) {} 
     282 
    280283 
    281284    // if user request help write it out to cout. 
     
    386389        keyswitchManipulator->addMatrixManipulator( '4', "Terrain", new osgGA::TerrainManipulator() ); 
    387390 
    388         std::string pathfile; 
    389         while (arguments.read("-p",pathfile)) 
     391        if (!pathfile.empty()) 
    390392        { 
    391393            osgGA::AnimationPathManipulator* apm = new osgGA::AnimationPathManipulator(pathfile);