Skip to content

Commit

Permalink
[CD] Fix exception on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhauled committed May 15, 2024
1 parent 08c5098 commit 81844c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CollidersDebug.Core/CollidersDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ private void WindowFunc(int id)

protected override void LateUpdate()
{
if (MakerAPI.InsideMaker)
if (MakerAPI.InsideMaker && this._debugLines != null)
{
if (this._toggle.Value && this._target != null)
if (this._toggle != null && this._toggle.Value && this._target != null)
{
if (this._target.enabled != this._debugLines.IsActive())
this._debugLines.SetActive(this._target.enabled);
Expand Down

0 comments on commit 81844c3

Please sign in to comment.