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

    r5951 r6916  
    298298    // load the nodes from the commandline arguments. 
    299299    osg::Node* loadedmodel = osgDB::readNodeFiles(arguments); 
     300     
     301    // if not loaded assume no arguments passed in, try use default mode instead. 
     302    if (!loadedmodel) loadedmodel = osgDB::readNodeFile("glider.osg"); 
     303     
    300304    if (!loadedmodel) 
    301305    {