Merge pull request #11112 from Piralein/brackets

Add missing brackets in c# code
This commit is contained in:
Matthew
2025-07-14 16:09:45 -04:00
committed by GitHub
8 changed files with 40 additions and 0 deletions

View File

@@ -170,9 +170,13 @@ it is nicer to exit on failure than to hang the system.
// Enable VRS
if (RenderingServer.GetRenderingDevice() != null)
{
vp.VrsMode = Viewport.VrsModeEnum.XR;
}
else if ((int)ProjectSettings.GetSetting("xr/openxr/foveation_level") == 0)
{
GD.PushWarning("OpenXR: Recommend setting Foveation level to High in Project Settings");
}
// Connect the OpenXR events
_xrInterface.SessionBegun += OnOpenXRSessionBegun;
@@ -276,8 +280,12 @@ Not matching the physics update rate will cause stuttering as frames are rendere
{
GD.Print("OpenXR: Available refresh rates: ", availableRates);
foreach (float rate in availableRates)
{
if (rate > newRate && rate <= MaximumRefreshRate)
{
newRate = rate;
}
}
}
// Did we find a better rate?