Show
Ignore:
Timestamp:
06/08/07 17:37:20 (7 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/osgscribe/osgscribe.cpp

    r5954 r6916  
    2424    // load the nodes from the commandline arguments. 
    2525    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     26 
     27    // if not loaded assume no arguments passed in, try use default mode instead. 
     28    if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 
     29     
    2630    if (!loadedModel) 
    2731    {