mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-17 13:06:47 +00:00
Read the correct texture resource for other layers
This commit is contained in:
parent
f6f165852d
commit
512534be11
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Nif::NiSourceTexture *st = texprop->textures[0].texture.getPtr();
|
const Nif::NiSourceTexture *st = texprop->textures[i].texture.getPtr();
|
||||||
if(st->external)
|
if(st->external)
|
||||||
texName[i] = findTextureName(st->filename);
|
texName[i] = findTextureName(st->filename);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue