diff --git a/src/osgPlugins/flt/FltFile.cpp b/src/osgPlugins/flt/FltFile.cpp index 3cc38d0a5..a318a77db 100644 --- a/src/osgPlugins/flt/FltFile.cpp +++ b/src/osgPlugins/flt/FltFile.cpp @@ -245,6 +245,7 @@ bool FltFile::readFile(const std::string& fileName) osg::ref_ptr options = _pFltFile->getOptions() ? _pFltFile->getOptions() : new osgDB::ReaderWriter::Options; + //Path for Nested external references osgDB::FilePathList& fpl = options->getDatabasePathList(); const std::string& filePath = osgDB::getFilePath(filename); @@ -278,8 +279,6 @@ bool FltFile::readFile(const std::string& fileName) } pExternalFltFile->readModel(filename); - - fpl.pop_back(); } rec.setExternal(pExternalFltFile);