From 855e88da4342e081f8b328445b104a821af9e177 Mon Sep 17 00:00:00 2001 From: frohlich Date: Sat, 23 May 2009 12:00:17 +0000 Subject: [PATCH] Enable stg loading by filename. Modified Files: simgear/scene/tgdb/ReaderWriterSTG.cxx --- simgear/scene/tgdb/ReaderWriterSTG.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/scene/tgdb/ReaderWriterSTG.cxx b/simgear/scene/tgdb/ReaderWriterSTG.cxx index 397aa3c5..ac4f1059 100644 --- a/simgear/scene/tgdb/ReaderWriterSTG.cxx +++ b/simgear/scene/tgdb/ReaderWriterSTG.cxx @@ -57,6 +57,7 @@ ReaderWriterSTG::readNode(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const { std::string tileName = osgDB::getNameLessExtension(fileName); + tileName = osgDB::getSimpleFileName(tileName); osg::Node* result = TileEntry::loadTileByName(tileName, options); // For debugging race conditions -- 2.39.5