History

Move Faceshift related member out of Menu

Moved it to Faceshift class

Atlante45 committed 11 years ago

Commit ef5cfdc1 parent 8f5f6346 files · +22 −19Browse files

Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -1893,7 +1893,7 @@ void Application::updateMyAvatarLookAtPosition() { · 1892 unmodified lines
18931893 // deflect using Faceshift gaze data
18941894 glm::vec3 origin = _myAvatar->getHead()->getEyePosition();
18951895 float pitchSign = (_myCamera.getMode() == CAMERA_MODE_MIRROR) ? -1.0f : 1.0f;
1896− float deflection = Menu::getInstance()->getFaceshiftEyeDeflection();
1896+ float deflection = DependencyManager::get<Faceshift>()->getEyeDeflection();
18971897 if (isLookingAtSomeone) {
18981898 deflection *= GAZE_DEFLECTION_REDUCTION_DURING_EYE_CONTACT;
18991899 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t