mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:09:40 +00:00
Fix needTangents not being set for cached/shared materials
This commit is contained in:
parent
546b0cee76
commit
bfdca3b738
1 changed files with 2 additions and 0 deletions
|
@ -277,6 +277,8 @@ Ogre::String NIFMaterialLoader::getMaterial(const Nif::ShapeData *shapedata,
|
|||
if (itr != sMaterialMap.end())
|
||||
{
|
||||
// a suitable material exists already - use it
|
||||
sh::MaterialInstance* instance = sh::Factory::getInstance().getMaterialInstance(itr->second);
|
||||
needTangents = !sh::retrieveValue<sh::StringValue>(instance->getProperty("normalMap"), instance).get().empty();
|
||||
return itr->second;
|
||||
}
|
||||
// not found, create a new one
|
||||
|
|
Loading…
Reference in a new issue