Show
Ignore:
Timestamp:
06/08/07 14:13:33 (8 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/osgclip/osgclip.cpp

    r5920 r6908  
    101101    // load the nodes from the commandline arguments. 
    102102    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     103 
     104 
     105    // if not loaded assume no arguments passed in, try use default mode instead. 
     106    if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 
     107 
     108 
    103109    if (!loadedModel) 
    104110    {