Skip to content

Commit

Permalink
Hopefully fixes an NRE on Rift builds with trying to get into view mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Mar 29, 2024
1 parent 6552732 commit ddc1b26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Assets/Scripts/VrSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ private void RefreshRoomBoundsCache()
#if OCULUS_SUPPORTED
// N points, clockwise winding (but axis is undocumented), undocumented convexity
// In practice, it's clockwise looking along Y-
points_RS = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary)
.Select(v => UnityFromOculus(v)).ToArray();
points_RS = OVRManager.boundary
?.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary)
?.Select(v => UnityFromOculus(v))
.ToArray();
#else // OCULUS_SUPPORTED
// if (App.Config.m_SdkMode == SdkMode.SteamVR)
// {
Expand Down

0 comments on commit ddc1b26

Please sign in to comment.