From 1f0b87f3de7995cef9d3a667ac7692eabb627811 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 28 Jan 2025 16:57:16 +0000 Subject: [PATCH] Set correct length on edge MightSee arrays --- KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs index 17efef1..566618f 100644 --- a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs +++ b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs @@ -139,7 +139,7 @@ public class PotentiallyVisibleSet vs.Add(cell.Vertices[cell.Indices[indicesOffset + vIdx]]); } - var edge = new Edge(portalCount, poly.Destination, new Poly(vs, cell.Planes[poly.PlaneId])); + var edge = new Edge(cells.Length, poly.Destination, new Poly(vs, cell.Planes[poly.PlaneId])); edgeIndices.Add(_edges.Count); _edges.Add(edge); indicesOffset += poly.VertexCount;