summaryrefslogtreecommitdiff
path: root/Lights.cs
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-09-17 15:20:36 -0400
committerAndrew Opalach <andrew@akon.city> 2026-09-17 15:20:36 -0400
commit26da8f2ad030627eb81ace8a3b8af22ab7f6a34e (patch)
treeb005be8269de9103caacd24c7a270bd9c8ab13bd /Lights.cs
parent6073c6ef3a85557e3a1ff3ab03abe0b3e0d93f7c (diff)
downloadWorldTuningTool-26da8f2ad030627eb81ace8a3b8af22ab7f6a34e.tar.gz
WorldTuningTool-26da8f2ad030627eb81ace8a3b8af22ab7f6a34e.tar.bz2
WorldTuningTool-26da8f2ad030627eb81ace8a3b8af22ab7f6a34e.zip
Remove temporary debugging
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Lights.cs')
-rw-r--r--Lights.cs76
1 files changed, 0 insertions, 76 deletions
diff --git a/Lights.cs b/Lights.cs
index b592d67..b964367 100644
--- a/Lights.cs
+++ b/Lights.cs
@@ -583,25 +583,6 @@ namespace WorldTuningTool
public void PostUpdateLightLinker()
{
- if (Monitor.TryEnter(sceneLights))
- {
- try
- {
- PostUpdateLightLinkerN();
- }
- finally
- {
- Monitor.Exit(sceneLights);
- }
- }
- else
- {
- Assert(false);
- }
- }
-
- public void PostUpdateLightLinkerN()
- {
foreach (uLight light in sceneLights)
{
foreach (Parameter param in light.Parameters)
@@ -613,25 +594,6 @@ namespace WorldTuningTool
public void OnUpdate()
{
- if (Monitor.TryEnter(sceneLights))
- {
- try
- {
- OnUpdateN();
- }
- finally
- {
- Monitor.Exit(sceneLights);
- }
- }
- else
- {
- Assert(false);
- }
- }
-
- public void OnUpdateN()
- {
lock (newLights)
{
for (int i = newLights.Count - 1; i >= 0; i--)
@@ -668,25 +630,6 @@ namespace WorldTuningTool
private void cleanupCommon(nint lightObject)
{
- if (Monitor.TryEnter(sceneLights))
- {
- try
- {
- cleanupCommonN(lightObject);
- }
- finally
- {
- Monitor.Exit(sceneLights);
- }
- }
- else
- {
- Assert(false);
- }
- }
-
- private void cleanupCommonN(nint lightObject)
- {
for (int i = 0; i < sceneLights.Count; i++)
{
uLight light = sceneLights[i];
@@ -933,25 +876,6 @@ namespace WorldTuningTool
public unsafe void DrawUI(float width)
{
- if (Monitor.TryEnter(sceneLights))
- {
- try
- {
- DrawUIN(width);
- }
- finally
- {
- Monitor.Exit(sceneLights);
- }
- }
- else
- {
- Assert(false);
- }
- }
-
- public unsafe void DrawUIN(float width)
- {
int lightType = -1;
nint lightObject = 0x0;
if (ImGui.Button("New Point Light"))