Changeset 11159

Show
Ignore:
Timestamp:
03/05/10 12:19:34 (5 years ago)
Author:
robert
Message:

Changed Options::setDatabasePath(..) usage to getDatabasePathList().push_front() to paths set by Options to be picked up.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp

    r10283 r11159  
    282282            // setting up the database path so that internally referenced file are searched for on relative paths.  
    283283            osg::ref_ptr<Options> local_opt = options ? static_cast<Options*>(options->clone(osg::CopyOp::SHALLOW_COPY)) : new Options; 
    284             local_opt->setDatabasePath(osgDB::getFilePath(fileName)); 
     284            local_opt->getDatabasePathList().push_front(osgDB::getFilePath(fileName)); 
    285285 
    286286            ReadResult rr;