From 138835d8177705d8a6732367b6f071901086c951 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 28 Aug 2003 12:47:32 +0000 Subject: [PATCH] Added a PushAndPopFilePath usage to the internal flt file references. --- src/osgPlugins/flt/flt2osg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 3eba8aefd..911f87766 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -33,7 +33,7 @@ #include #include -#include +#include #include #include #include @@ -1859,6 +1859,9 @@ osg::Group* ConvertFromFLT::visitExternal(osg::Group& osgParent, ExternalRecord* { // SExternalReference *pSExternal = (SExternalReference*)rec->getData(); + osgDB::PushAndPopDataPath tmpfile(osgDB::getFilePath(rec->getFilename())); + + FltFile* pFile = rec->getExternal(); osg::Group* external = NULL; if (pFile)