Rename SMaterial::TextureLayer -> SMaterial::TextureLayers

It's not the "texture layer" of the material, but an array of texture layers.
This commit is contained in:
Gregor Parzefall
2023-06-24 15:18:06 +02:00
committed by sfan5
parent c0ef1092c0
commit c40045a40a
11 changed files with 107 additions and 107 deletions

View File

@ -590,9 +590,9 @@ public:
// Fix textures which got removed
for ( u32 i=0; i < MATERIAL_MAX_TEXTURES; ++i )
{
if ( material.TextureLayer[i].Texture && !TextureCache[i] )
if ( material.TextureLayers[i].Texture && !TextureCache[i] )
{
material.TextureLayer[i].Texture = 0;
material.TextureLayers[i].Texture = 0;
}
}
}