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

    r6088 r6916  
    8989    // read the scene from the list of file specified commandline args. 
    9090    osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments); 
     91     
     92    // if not loaded assume no arguments passed in, try use default mode instead. 
     93    if (!loadedModel) loadedModel = osgDB::readNodeFile("cow.osg"); 
    9194 
    9295    // if no model has been successfully loaded report failure.