From 55ea3baa3dcba2c99583b64a8af24ef420c6e7f8 Mon Sep 17 00:00:00 2001 From: ook3d <47336113+ook3D@users.noreply.github.com> Date: Wed, 18 Feb 2026 14:50:26 -0500 Subject: [PATCH] always render lodlight bound box makes it way easier to find and edit lodlights --- CodeWalker/WorldForm.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CodeWalker/WorldForm.cs b/CodeWalker/WorldForm.cs index 8f641ab5b..e7b712b10 100644 --- a/CodeWalker/WorldForm.cs +++ b/CodeWalker/WorldForm.cs @@ -2868,6 +2868,22 @@ private void UpdateMouseHits(YmapFile ymap) mb.Scale = Vector3.One; Renderer.BoundingBoxes.Add(mb); + if (ll.LodLights != null) + { + for (int i = 0; i < ll.LodLights.Length; i++) + { + var light = ll.LodLights[i]; + if ((light.Position - camera.Position).Length() > dmax) continue; + MapBox lmb = new(); + lmb.CamRelPos = light.Position - camera.Position; + lmb.BBMin = new Vector3(-0.5f); + lmb.BBMax = new Vector3(0.5f); + lmb.Orientation = Quaternion.Identity; + lmb.Scale = Vector3.One; + Renderer.BoundingBoxes.Add(lmb); + } + } + if (ll.BVH != null) { UpdateMouseHits(ll.BVH, ref mray);