Skip to content

Commit

Permalink
Fix for server - allow clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Aug 2, 2019
1 parent 5546ee8 commit dd72917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unity/Holo/Assets/Scripts/model_with_plate/ModelWithPlate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ private void InitializeAddButtons()
/* Handle a click on some button inside. Called by ButtonsClickReceiver. */
public void Click(GameObject clickObject)
{
if (SharingSceneData.Singleton.isClient) {
if (SharingSceneData.Singleton.isClient &&
!SharingSceneData.Singleton.isServer) {
return;
}

Expand Down

0 comments on commit dd72917

Please sign in to comment.