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/osgreflect/osgreflect.cpp

    r6163 r6916  
    332332    // read the scene from the list of file specified commandline args. 
    333333    osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 
     334     
     335    // if not loaded assume no arguments passed in, try use default mode instead. 
     336    if (!loadedModel) loadedModel = osgDB::readNodeFile("cessna.osg"); 
    334337 
    335338    // if no model has been successfully loaded report failure.