Moved it to Faceshift class
Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1893,7 +1893,7 @@ void Application::updateMyAvatarLookAtPosition() { · 1892 unmodified lines | ||
| 1893 | 1893 | // deflect using Faceshift gaze data |
| 1894 | 1894 | glm::vec3 origin = _myAvatar->getHead()->getEyePosition(); |
| 1895 | 1895 | float pitchSign = (_myCamera.getMode() == CAMERA_MODE_MIRROR) ? -1.0f : 1.0f; |
| 1896 | − float deflection = Menu::getInstance()->getFaceshiftEyeDeflection(); | |
| 1896 | + float deflection = DependencyManager::get<Faceshift>()->getEyeDeflection(); | |
| 1897 | 1897 | if (isLookingAtSomeone) { |
| 1898 | 1898 | deflection *= GAZE_DEFLECTION_REDUCTION_DURING_EYE_CONTACT; |
| 1899 | 1899 | } |