From 057cbe7cc3bf3ec71e383e98082a63a90e8b0173 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 11 Dec 2011 22:19:11 +0100 Subject: [PATCH] Correct scenery load path extension. --- simgear/scene/tgdb/TileEntry.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/simgear/scene/tgdb/TileEntry.cxx b/simgear/scene/tgdb/TileEntry.cxx index a04b0164..a6c5575c 100644 --- a/simgear/scene/tgdb/TileEntry.cxx +++ b/simgear/scene/tgdb/TileEntry.cxx @@ -200,8 +200,12 @@ TileEntry::loadTileByFileName(const string& fileName, osgDB::FilePathList path_list=options->getDatabasePathList(); // Make sure we find the original filename here... std::string filePath = osgDB::getFilePath(fileName); - if (!filePath.empty()) - path_list.push_front(filePath); + if (!filePath.empty()) { + SGPath p(filePath); + p.append(".."); + p.append(".."); + path_list.push_front(p.str()); + } // scan and parse all files and store information for (unsigned int i = 0; i < path_list.size(); i++) { -- 2.39.5