From ed0200162c2a1c7c408b48b6f4f94fa37f590094 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Apr 2005 11:22:43 +0000 Subject: [PATCH] From Alberto Farre, nested files bug fix. --- src/osgPlugins/flt/FltFile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);