mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 11:39:41 +00:00
Fix some material warnings
This commit is contained in:
parent
af756bfa9c
commit
99b915e652
1 changed files with 7 additions and 3 deletions
|
@ -712,7 +712,7 @@ static Ogre::String getMaterial(const Nif::ShapeData *shapedata,
|
||||||
continue;
|
continue;
|
||||||
if(texprop->textures[i].texture.empty())
|
if(texprop->textures[i].texture.empty())
|
||||||
{
|
{
|
||||||
warn("Texture layer "+Ogre::StringConverter::toString(i)+" is in use but empty in "+name+"\n");
|
warn("Texture layer "+Ogre::StringConverter::toString(i)+" is in use but empty in "+name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -840,10 +840,14 @@ static Ogre::String getMaterial(const Nif::ShapeData *shapedata,
|
||||||
instance->setProperty("emissiveMapUVSet", sh::makeProperty(new sh::IntValue(texprop->textures[Nif::NiTexturingProperty::GlowTexture].uvSet)));
|
instance->setProperty("emissiveMapUVSet", sh::makeProperty(new sh::IntValue(texprop->textures[Nif::NiTexturingProperty::GlowTexture].uvSet)));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 1;i < 7;i++)
|
for(int i = 0;i < 7;i++)
|
||||||
{
|
{
|
||||||
|
if(i == Nif::NiTexturingProperty::BaseTexture ||
|
||||||
|
i == Nif::NiTexturingProperty::BumpTexture ||
|
||||||
|
i == Nif::NiTexturingProperty::GlowTexture)
|
||||||
|
continue;
|
||||||
if(!texName[i].empty())
|
if(!texName[i].empty())
|
||||||
warn("Ignored texture "+texName[i]+" on layer "+Ogre::StringConverter::toString(i)+"\n");
|
warn("Ignored texture "+texName[i]+" on layer "+Ogre::StringConverter::toString(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vertexColour)
|
if (vertexColour)
|
||||||
|
|
Loading…
Reference in a new issue