mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Fix restoring the original texture name when the DDS check fails
This commit is contained in:
parent
3961fb36d4
commit
e3fd4b8429
1 changed files with 6 additions and 1 deletions
|
@ -621,7 +621,12 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
|||
// if it turns out that the above wasn't true in all cases (not for vanilla, but maybe mods)
|
||||
// verify, and revert if false (this call succeeds quickly, but fails slowly)
|
||||
if(!Ogre::ResourceGroupManager::getSingleton().resourceExistsInAnyGroup(texName))
|
||||
texName = path + Misc::StringUtils::lowerCase(texName);
|
||||
{
|
||||
texName = st->filename;
|
||||
Misc::StringUtils::toLower(texName);
|
||||
if(texName.compare(0, sizeof(path)-1, path) != 0)
|
||||
texName = path + texName;
|
||||
}
|
||||
}
|
||||
}
|
||||
else warn("Found internal texture, ignoring.");
|
||||
|
|
Loading…
Reference in a new issue