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

    r6159 r6908  
    123123    // load the nodes from the commandline arguments. 
    124124    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     125 
     126    // if not loaded assume no arguments passed in, try use default mode instead. 
     127    if (!loadedModel) loadedModel = osgDB::readNodeFile("cessnafire.osg"); 
     128   
    125129    if (!loadedModel) 
    126130    { 
     
    128132        return 1; 
    129133    } 
    130    
     134 
    131135    osg::Group* root = new osg::Group; 
    132136    root->addChild(loadedModel);