Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -91,7 +91,7 @@ void HMDScriptingInterface::activateHMDHandMouse() { · 90 unmodified lines | |||
| 91 | 91 | ||
| 92 | void HMDScriptingInterface::deactivateHMDHandMouse() { | 92 | void HMDScriptingInterface::deactivateHMDHandMouse() { |
| 93 | QWriteLocker lock(&_hmdHandMouseLock); | 93 | QWriteLocker lock(&_hmdHandMouseLock); |
| 94 | _hmdHandMouseCount = std::max(--_hmdHandMouseCount, 0); | 94 | _hmdHandMouseCount = std::max(_hmdHandMouseCount - 1, 0); |
| 95 | if (_hmdHandMouseCount == 0) { | 95 | if (_hmdHandMouseCount == 0) { |
| 96 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); | 96 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 97 | offscreenUi->getDesktop()->setProperty("hmdHandMouseActive", false); | 97 | offscreenUi->getDesktop()->setProperty("hmdHandMouseActive", false); |