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

    r5927 r6916  
    2828    // load the nodes from the commandline arguments. 
    2929    osg::Node* rootnode = osgDB::readNodeFiles(arguments); 
     30     
     31    // if not loaded assume no arguments passed in, try use default mode instead. 
     32    if (!rootnode) rootnode = osgDB::readNodeFile("cessnafire.osg"); 
     33     
    3034    if (!rootnode) 
    3135    {