Skip to content

Commit d14eb17

Browse files
authored
Remove old "not supported" code that sneaked back in with plugin merge (#849)
1 parent f56c86b commit d14eb17

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Assets/Scripts/GUI/SketchbookPanel.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class SketchbookPanel : ModalPanel
4949
[SerializeField] private GameObject m_NoShowcaseMessage;
5050
[SerializeField] private GameObject m_ContactingServerMessage;
5151
[SerializeField] private GameObject m_OutOfDateMessage;
52-
[SerializeField] private GameObject m_NotSupportedMessage;
5352
[SerializeField] private GameObject m_NoPolyConnectionMessage;
5453
[SerializeField] private Renderer m_OnlineGalleryButtonRenderer;
5554
[SerializeField] private GameObject[] m_IconsOnFirstPage;
@@ -308,15 +307,7 @@ protected override void RefreshPage()
308307
bool outOfDate = !polyDown && !VrAssetService.m_Instance.Available && requiresPoly;
309308
m_OutOfDateMessage.SetActive(outOfDate);
310309

311-
bool notSupported = false;
312-
#if UNITY_ANDROID && OCULUS_SUPPORTED
313-
notSupported = !polyDown && !outOfDate && OVRPlugin.GetSystemHeadsetType() == OVRPlugin.SystemHeadset.Oculus_Quest
314-
&& (m_CurrentSketchSet == SketchSetType.Curated
315-
|| m_CurrentSketchSet == SketchSetType.Liked);
316-
m_NotSupportedMessage.SetActive(notSupported);
317-
#endif
318-
319-
if (outOfDate || polyDown || notSupported)
310+
if (outOfDate || polyDown)
320311
{
321312
m_NoSketchesMessage.SetActive(false);
322313
m_NoDriveSketchesMessage.SetActive(false);

0 commit comments

Comments
 (0)