mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix texture name issue with Vality's Bitter Coast Mod
This commit is contained in:
parent
2cb9f38a45
commit
6929e541dd
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ std::string NIFMaterialLoader::findTextureName(const std::string &filename)
|
|||
std::string texname = filename;
|
||||
Misc::StringUtils::toLower(texname);
|
||||
|
||||
// Apparently, leading separators are allowed
|
||||
while (texname.size() && (texname[0] == '/' || texname[0] == '\\'))
|
||||
texname.erase(0, 1);
|
||||
|
||||
if(texname.compare(0, sizeof(path)-1, path) != 0 &&
|
||||
texname.compare(0, sizeof(path2)-1, path2) != 0)
|
||||
texname = path + texname;
|
||||
|
|
Loading…
Reference in a new issue