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
2012 bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);2012 bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
2013 PerformanceWarning warn(showWarnings, "Application::updateMyAvatarLookAtPosition()");2013 PerformanceWarning warn(showWarnings, "Application::updateMyAvatarLookAtPosition()");
2014 2014
2015 if (!_lookatTargetAvatar) {2015 if (_myCamera.getMode() == CAMERA_MODE_MIRROR) {
2016 lookAtSpot = _myCamera.getPosition();
2017
2018 } else if (!_lookatTargetAvatar) {
2016 if (_isHoverVoxel) {2019 if (_isHoverVoxel) {
2017 // Look at the hovered voxel2020 // Look at the hovered voxel
2018 lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);2021 lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);
2019 2022
2020 } else if (_myCamera.getMode() == CAMERA_MODE_MIRROR) {
2021 lookAtSpot = _myCamera.getPosition();
2022
2023 } else {2023 } else {
2024 // Just look in direction of the mouse ray2024 // Just look in direction of the mouse ray
2025 const float FAR_AWAY_STARE = TREE_SCALE;2025 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