History

warnings

SamGondelman committed 9 years ago

Commit 3149c3e1 parent 3c8b9643 files · +3 −12Browse files

Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

interface/src/scripting/HMDScriptingInterface.cpp+1−1
@@ -91,7 +91,7 @@ void HMDScriptingInterface::activateHMDHandMouse() { · 90 unmodified lines
91 91
92void HMDScriptingInterface::deactivateHMDHandMouse() {92void 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);