Show
Ignore:
Timestamp:
06/08/07 17:37:20 (8 years ago)
Author:
robert
Message:

From Martin Lavery and Robert Osfield, added fallbacks for when now command line args are provided.

Files:
1 modified

Legend:

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

    r6183 r6916  
    214214    // read the scene from the list of file specified commandline args. 
    215215    osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 
     216      
     217    // if not loaded assume no arguments passed in, try use default mode instead. 
     218    if (!scene) scene = osgDB::readNodeFile("fountain.osg"); 
    216219 
    217220    osg::ref_ptr<osg::Group> group = dynamic_cast<osg::Group*>(scene.get());