Fix importing occlusions from .ymap files

Occlude Models from imported .ymap files was not being recognized properly.
The triangles count being shown on Project window was always being 0.
This commit is contained in:
FumaPraQue 2022-10-17 23:34:46 -03:00
parent 6f5f0fde39
commit f0f23ded18

View File

@ -3309,6 +3309,7 @@ namespace CodeWalker.GameFiles
Vertices = MetaTypes.ConvertDataArray<Vector3>(Data, 0, vertexCount);
Indices = new byte[indexCount];
Buffer.BlockCopy(Data, indicesOffset, Indices, 0, indexCount);
BuildTriangles();
}