]> git.mxchange.org Git - simgear.git/commitdiff
Enable stg loading by filename.
authorfrohlich <frohlich>
Sat, 23 May 2009 12:00:17 +0000 (12:00 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 2 Jun 2009 22:08:05 +0000 (00:08 +0200)
Modified Files:
simgear/scene/tgdb/ReaderWriterSTG.cxx

simgear/scene/tgdb/ReaderWriterSTG.cxx

index 397aa3c56e8741efe36f43294952338cc97ff9d6..ac4f105987d4762c52ab0611475b20fd02e3152b 100644 (file)
@@ -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