Fix incorrect light and uv indices on model materials

This commit is contained in:
Jarrod Doyle 2024-08-18 11:08:42 +01:00
parent 8a22defe17
commit 6340a4c545
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class ModelFile
UvIndices = new ushort[Type == 0x1B ? VertexCount : 0];
for (var i = 0; i < UvIndices.Length; i++)
{
LightIndices[i] = reader.ReadUInt16();
UvIndices[i] = reader.ReadUInt16();
}
Material = version == 4 ? reader.ReadByte() : (byte)0;