From cf7199a1c31f0058be17012d530ae53cec0ef7fd Mon Sep 17 00:00:00 2001 From: Ricardo Lopes Date: Wed, 12 Aug 2020 17:04:35 +0200 Subject: [PATCH] Revert fatal error on mapping name not found --- NomaiVR/Input/VRActionInput.cs | 11 ++++++----- NomaiVR/manifest.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/NomaiVR/Input/VRActionInput.cs b/NomaiVR/Input/VRActionInput.cs index 025d7e8e..ed10c0a4 100644 --- a/NomaiVR/Input/VRActionInput.cs +++ b/NomaiVR/Input/VRActionInput.cs @@ -31,11 +31,12 @@ public void Initialize() _hand = _action.GetLocalizedOriginPart(SteamVR_Input_Sources.Any, new[] { EVRInputStringBits.VRInputString_Hand }); _source = _action.GetLocalizedOriginPart(SteamVR_Input_Sources.Any, new[] { EVRInputStringBits.VRInputString_InputSource }); - if (string.IsNullOrEmpty(_hand) && string.IsNullOrEmpty(_source)) - { - Logs.WriteError($"Could not find name for binding {_action.GetShortName()}."); - FatalErrorChecker.ThrowSteamVRError(); - } + // TODO: need to find a better way to detect this + //if (string.IsNullOrEmpty(_hand) && string.IsNullOrEmpty(_source)) + //{ + // Logs.WriteError($"Could not find name for binding {_action.GetShortName()}."); + // FatalErrorChecker.ThrowSteamVRError(); + //} } public VRActionInput(ISteamVR_Action_In action, bool isLongPress = false) : this(action, TextHelper.ORANGE, isLongPress) { } diff --git a/NomaiVR/manifest.json b/NomaiVR/manifest.json index 4d20126c..1915e91f 100644 --- a/NomaiVR/manifest.json +++ b/NomaiVR/manifest.json @@ -4,7 +4,7 @@ "name": "NomaiVR", "uniqueName": "Raicuparta.NomaiVR", "description": "Enables VR mode, with full motion control support.", - "version": "0.55.0", + "version": "0.55.1", "owmlVersion": "0.7.3", "requireVR": true }