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 | 92 | void HMDScriptingInterface::deactivateHMDHandMouse() { |
| 93 | 93 | QWriteLocker lock(&_hmdHandMouseLock); |
| 94 | − _hmdHandMouseCount = std::max(--_hmdHandMouseCount, 0); | |
| 94 | + _hmdHandMouseCount = std::max(_hmdHandMouseCount - 1, 0); | |
| 95 | 95 | if (_hmdHandMouseCount == 0) { |
| 96 | 96 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 97 | 97 | offscreenUi->getDesktop()->setProperty("hmdHandMouseActive", false); |