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

    r6051 r6916  
    421421    // load the nodes from the commandline arguments. 
    422422    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     423     
     424    // if not loaded assume no arguments passed in, try use default mode instead. 
     425    if (!loadedModel) loadedModel = osgDB::readNodeFile("cessna.osg"); 
     426     
    423427    if (!loadedModel) 
    424428    {