Skip to content

Commit

Permalink
fix: missing calls to Clear were crashing WebGL builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 7, 2023
1 parent cbc079f commit fbcd5ca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ private void Start()
Client_SocketIO.SetScale += SetScale;
Client_SocketIO.SetColor += SetColor;
Client_SocketIO.SetMaterial += SetMaterial;

Client_SocketIO.ClearMeshes += Clear;
}

public void CreateMesh(List<string> meshes) //instantiates cube as default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ private void Start()
Client_SocketIO.SetProbeAngles += SetAngles;
//Client_SocketIO.SetProbeStyle += SetStyles;
Client_SocketIO.SetProbeSize += SetSizes;

Client_SocketIO.ClearProbes += ClearProbes;
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ private void Start()
Client_SocketIO.SetTextColors += SetColor;
Client_SocketIO.SetTextSizes += SetSize;
Client_SocketIO.SetTextPositions += SetPosition;

Client_SocketIO.ClearText += Clear;
}
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ private void Start()
Client_SocketIO.CreateVolume += Create;
Client_SocketIO.DeleteVolume += Delete;
Client_SocketIO.SetVolumeColormap += SetColormap;

Client_SocketIO.ClearVolumes += Clear;
}

#region Public functions
Expand Down

0 comments on commit fbcd5ca

Please sign in to comment.