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

    r5964 r6916  
    2323    osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 
    2424 
     25    // if not loaded assume no arguments passed in, try use default mode instead. 
     26    if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 
     27     
    2528    // if no model has been successfully loaded report failure. 
    2629    if (!loadedModel)