Set light table index on brush lights

This commit is contained in:
Jarrod Doyle 2024-10-05 19:19:45 +01:00
parent 5d72ba546e
commit 1d32b3ef7b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 4 additions and 1 deletions

View File

@ -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
{