Fix incorrect light and uv indices on model materials
This commit is contained in:
parent
8a22defe17
commit
6340a4c545
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue