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

    r5927 r6916  
    126126    // load the nodes from the commandline arguments. 
    127127    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     128     
     129    // if not loaded assume no arguments passed in, try use default mode instead. 
     130    if (!loadedModel) loadedModel = osgDB::readNodeFile("glider.osg"); 
     131     
    128132    if (!loadedModel) 
    129133    {