From ae54f9c80a981d1e0d25ad5ba7f040231b8931bb Mon Sep 17 00:00:00 2001 From: David Kelly Date: Mon, 22 May 2017 16:25:21 -0700 Subject: [PATCH] Should fix crash in general setting dialog --- plugins/openvr/src/ViveControllerManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openvr/src/ViveControllerManager.cpp b/plugins/openvr/src/ViveControllerManager.cpp index 3bda481243..2e4705d24b 100644 --- a/plugins/openvr/src/ViveControllerManager.cpp +++ b/plugins/openvr/src/ViveControllerManager.cpp @@ -163,12 +163,12 @@ void ViveControllerManager::pluginUpdate(float deltaTime, const controller::Inpu } ViveControllerManager::InputDevice::InputDevice(vr::IVRSystem*& system) : controller::InputDevice("Vive"), _system(system) { - createPreferences(); - _configStringMap[Config::Auto] = QString("Auto"); _configStringMap[Config::Feet] = QString("Feet"); _configStringMap[Config::FeetAndHips] = QString("FeetAndHips"); _configStringMap[Config::FeetHipsAndChest] = QString("FeetHipsAndChest"); + + createPreferences(); } void ViveControllerManager::InputDevice::update(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) {