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

    r6263 r6916  
    192192    osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 
    193193     
     194    // if not loaded assume no arguments passed in, try use default mode instead. 
     195    if (!scene) scene = osgDB::readNodeFile("dumptruck.osg"); 
     196     
     197     
    194198    if (!scene) 
    195199    {