From 3b97e5fbeec15091030909c4c9253aa2df9f93ec Mon Sep 17 00:00:00 2001 From: OneUp Date: Thu, 19 Sep 2024 21:57:02 -0500 Subject: [PATCH] Reset position on profile load --- README.md | 1 + vrto3d/src/hmd_device_driver.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 4ebff03..84524d6 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ Checkout the [Compatibility List](https://github.com/oneup03/VRto3D/wiki/Compati - Modify the `Steam\steamapps\common\SteamVR\drivers\vrto3d\resources\settings\default.vrsettings` for your setup - Any changes made to this configuration require a restart of SteamVR to take effect - Fields with a `+` next to them will be saved to a game's profile when you press `Ctrl + F7` +- If you want to change a game's profile, either delete it from `Steam\config\steamvr.vrsettings` or use `Ctrl + F10` to load your current `default.vrsettings` and then `Ctrl + F7` to save the new settings - If a game's profile exists in `Steam\config\steamvr.vrsettings` then it will override `default.vrsettings` you will hear a beep to indicate a profile loaded | Field Name | Type | Description | Default Value | diff --git a/vrto3d/src/hmd_device_driver.cpp b/vrto3d/src/hmd_device_driver.cpp index 7aa6e5b..326eb77 100644 --- a/vrto3d/src/hmd_device_driver.cpp +++ b/vrto3d/src/hmd_device_driver.cpp @@ -1157,6 +1157,7 @@ void StereoDisplayComponent::LoadSettings(const std::string& app_name, uint32_t AdjustDepth(config_.depth, false, device_index); AdjustConvergence(config_.convergence, false, device_index); + config_.pose_reset = true; DriverLog("Loaded %s profile\n", app_name); } @@ -1174,6 +1175,7 @@ void StereoDisplayComponent::LoadDefaults(uint32_t device_index) config_ = def_config_; AdjustDepth(config_.depth, false, device_index); AdjustConvergence(config_.convergence, false, device_index); + config_.pose_reset = true; DriverLog("Loaded defaults from user config file\n"); BeepSuccess(); } \ No newline at end of file