Skip to content

Commit

Permalink
Disable Join Button if in PassThrough mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sbanca committed Dec 19, 2024
1 parent 0967bd5 commit a3185a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/SketchControlsScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5097,7 +5097,7 @@ public bool IsCommandAvailable(GlobalCommands rEnum, int iParam = -1)
case GlobalCommands.MultiplayerDisconnect:
return MultiplayerManager.m_Instance.IsDisconnectable();
case GlobalCommands.MultiplayerJoinRoom:
return !PanelManager.m_Instance.AdvancedModeActive() && MultiplayerManager.m_Instance.CanJoinRoom();
return !PanelManager.m_Instance.AdvancedModeActive() && MultiplayerManager.m_Instance.CanJoinRoom() && !SceneSettings.m_Instance.GetDesiredPreset().isPassthrough;
case GlobalCommands.MultiplayerLeaveRoom:
return MultiplayerManager.m_Instance.CanLeaveRoom();
case GlobalCommands.Sketchbook:
Expand Down

0 comments on commit a3185a0

Please sign in to comment.