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)