Correct scenery load path extension.
This commit is contained in:
parent
945a9e0ac2
commit
057cbe7cc3
@ -200,8 +200,12 @@ TileEntry::loadTileByFileName(const string& fileName,
|
|||||||
osgDB::FilePathList path_list=options->getDatabasePathList();
|
osgDB::FilePathList path_list=options->getDatabasePathList();
|
||||||
// Make sure we find the original filename here...
|
// Make sure we find the original filename here...
|
||||||
std::string filePath = osgDB::getFilePath(fileName);
|
std::string filePath = osgDB::getFilePath(fileName);
|
||||||
if (!filePath.empty())
|
if (!filePath.empty()) {
|
||||||
path_list.push_front(filePath);
|
SGPath p(filePath);
|
||||||
|
p.append("..");
|
||||||
|
p.append("..");
|
||||||
|
path_list.push_front(p.str());
|
||||||
|
}
|
||||||
|
|
||||||
// scan and parse all files and store information
|
// scan and parse all files and store information
|
||||||
for (unsigned int i = 0; i < path_list.size(); i++) {
|
for (unsigned int i = 0; i < path_list.size(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user