Avoid empty search path extensions for the case that only the bucket index

number is given.

Modified Files:
	scene/tgdb/TileEntry.cxx
This commit is contained in:
frohlich
2009-05-25 04:59:51 +00:00
committed by Tim Moore
parent 2c66081fa4
commit 4700955480

View File

@@ -265,7 +265,9 @@ TileEntry::loadTileByFileName(const string& fileName,
osgDB::FilePathList path_list=options->getDatabasePathList();
// Make sure we find the original filename here...
path_list.push_front(osgDB::getFilePath(fileName));
std::string filePath = osgDB::getFilePath(fileName);
if (!filePath.empty())
path_list.push_front(filePath);
// scan and parse all files and store information
for (unsigned int i = 0; i < path_list.size(); i++) {