Changed Options::setDatabasePath(..) usage to getDatabasePathList().push_front() to paths set by Options to be picked up.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user