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

    r6051 r6916  
    150150    // load the images specified on command line 
    151151    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
     152   
     153    // if not loaded assume no arguments passed in, try use default mode instead. 
     154    if (!loadedModel) loadedModel = osgDB::readNodeFile("dumptruck.osg"); 
    152155     
    153156    if (!loadedModel)