Skip to content

Commit

Permalink
🐛 fix: Fix error with any null reference in probes
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Aug 7, 2021
1 parent 20dcb65 commit 863b2d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Assets/UdonSunController/Scripts/UdonSunController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public void RenderSingleProbe()

public void RenderAllProbes()
{
foreach (var probe in probes) probe.RenderProbe();
foreach (var probe in probes)
{
if (probe) probe.RenderProbe();
}

if (eventTarget == null) return;
eventTarget.SendCustomEvent(eventName);
Expand Down
Loading

0 comments on commit 863b2d8

Please sign in to comment.