History

Don't track the mouse in mirror mode.

Andrzej Kapolka committed 13 years ago

Commit c358b9f1 parent 82649a91 file · +4 −4Browse files

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

Unified · Split

interface/src/Application.cpp+4−4
@@ -2012,14 +2012,14 @@ void Application::updateMyAvatarLookAtPosition(glm::vec3& lookAtSpot, glm::vec3& · 2011 unmodified lines
20122012 bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
20132013 PerformanceWarning warn(showWarnings, "Application::updateMyAvatarLookAtPosition()");
20142014
2015− if (!_lookatTargetAvatar) {
2015+ if (_myCamera.getMode() == CAMERA_MODE_MIRROR) {
2016+ lookAtSpot = _myCamera.getPosition();
2017+
2018+ } else if (!_lookatTargetAvatar) {
20162019 if (_isHoverVoxel) {
20172020 // Look at the hovered voxel
20182021 lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);
20192022
2020− } else if (_myCamera.getMode() == CAMERA_MODE_MIRROR) {
2021− lookAtSpot = _myCamera.getPosition();
2022−
20232023 } else {
20242024 // Just look in direction of the mouse ray
20252025 const float FAR_AWAY_STARE = TREE_SCALE;

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