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

This commit is contained in:
Robert Osfield
2010-03-05 11:19:34 +00:00
parent e01832763d
commit c40a4ff9cb

View File

@@ -281,7 +281,7 @@ class FLTReaderWriter : public ReaderWriter
// setting up the database path so that internally referenced file are searched for on relative paths.
osg::ref_ptr<Options> local_opt = options ? static_cast<Options*>(options->clone(osg::CopyOp::SHALLOW_COPY)) : new Options;
local_opt->setDatabasePath(osgDB::getFilePath(fileName));
local_opt->getDatabasePathList().push_front(osgDB::getFilePath(fileName));
ReadResult rr;