From: frohlich Date: Sat, 23 May 2009 12:00:17 +0000 (+0000) Subject: Enable stg loading by filename. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=855e88da4342e081f8b328445b104a821af9e177;p=simgear.git Enable stg loading by filename. Modified Files: simgear/scene/tgdb/ReaderWriterSTG.cxx --- 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