From f0f23ded18559dc86bf6d0f7fc9aab1b653272c8 Mon Sep 17 00:00:00 2001 From: FumaPraQue Date: Mon, 17 Oct 2022 23:34:46 -0300 Subject: [PATCH] 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. --- CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs index a1f7cd9..09a5e5a 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs @@ -3309,6 +3309,7 @@ namespace CodeWalker.GameFiles Vertices = MetaTypes.ConvertDataArray(Data, 0, vertexCount); Indices = new byte[indexCount]; Buffer.BlockCopy(Data, indicesOffset, Indices, 0, indexCount); + BuildTriangles(); }