From 1d32b3ef7b7212841dd8a17c95f0e464aa546822 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 5 Oct 2024 19:19:45 +0100 Subject: [PATCH] Set light table index on brush lights --- KeepersCompound.Lightmapper/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index f246d10..60f6b39 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -1,4 +1,4 @@ -using System.Numerics; +using System.Numerics; using KeepersCompound.LGS; using KeepersCompound.LGS.Database; using KeepersCompound.LGS.Database.Chunks; @@ -185,6 +185,9 @@ class Program { if (brush.media == BrList.Brush.Media.Light) { + // For some reason the light table index on brush lights is 1 indexed + brush.brushInfo = (uint)worldRep.LightingTable.LightCount + 1; + var sz = brush.size; var light = new Light {