Show
Ignore:
Timestamp:
06/08/07 14:13:33 (7 years ago)
Author:
robert
Message:

Added default file load to avoid the need for command line option.

Files:
1 modified

Legend:

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

    r5923 r6908  
    7979    // load the nodes from the commandline arguments. 
    8080    osg::Node* rootnode = osgDB::readNodeFiles(arguments); 
    81     if (!rootnode) { 
     81 
     82    // if not loaded assume no arguments passed in, try use default mode instead. 
     83    if (!rootnode) rootnode = osgDB::readNodeFile("cessna.osg"); 
     84 
     85    if (!rootnode) 
     86    { 
    8287        osg::notify(osg::NOTICE)<<"Please specify a model filename on the command line."<<std::endl; 
    8388        return 1;