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

    r6051 r6916  
    308308    // load the nodes from the commandline arguments. 
    309309    osg::Node* loadedModel = osgDB::readNodeFiles(arguments); 
    310  
     310     
     311    // if not loaded assume no arguments passed in, try use default mode instead. 
     312    if (!loadedModel) loadedModel = osgDB::readNodeFile("glider.osg"); 
     313     
    311314    // create a room made of foor walls, a floor, a roof, and swinging light fitting. 
    312315    osg::Node* rootnode = createRoom(loadedModel);