Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1196,8 +1196,8 @@ void Application::mouseMoveEvent(QMouseEvent* event) { · 1195 unmodified lines | ||
| 1196 | 1196 | if (activeWindow() == _window) { |
| 1197 | 1197 | // orbit behavior |
| 1198 | 1198 | if (_mousePressed && !Menu::getInstance()->isVoxelModeActionChecked()) { |
| 1199 | − if (_avatarManager.getLookAtTargetAvatar()) { | |
| 1200 | − _myAvatar->orbit(_avatarManager.getLookAtTargetAvatar()->getPosition(), deltaX, deltaY); | |
| 1199 | + if (_myAvatar->getLookAtTargetAvatar()) { | |
| 1200 | + _myAvatar->orbit(_myAvatar->getLookAtTargetAvatar()->getPosition(), deltaX, deltaY); | |
| 1201 | 1201 | return; |
| 1202 | 1202 | } |
| 1203 | 1203 | if (_isHoverVoxel) { |
| @@ -1256,7 +1256,7 @@ void Application::mousePressEvent(QMouseEvent* event) { · 52 unmodified lines | ||
| 1256 | 1256 | return; |
| 1257 | 1257 | } |
| 1258 | 1258 | |
| 1259 | − if (!_palette.isActive() && (!_isHoverVoxel || _avatarManager.getLookAtTargetAvatar())) { | |
| 1259 | + if (!_palette.isActive() && (!_isHoverVoxel || _myAvatar->getLookAtTargetAvatar())) { | |
| 1260 | 1260 | // disable for now |
| 1261 | 1261 | // _pieMenu.mousePressEvent(_mouseX, _mouseY); |
| 1262 | 1262 | } |
| @@ -2363,7 +2363,7 @@ void Application::update(float deltaTime) { · 1100 unmodified lines | ||
| 2363 | 2363 | glm::vec3 lookAtSpot; |
| 2364 | 2364 | |
| 2365 | 2365 | updateFaceshift(); |
| 2366 | − _avatarManager.updateLookAtTargetAvatar(lookAtSpot); | |
| 2366 | + _myAvatar->updateLookAtTargetAvatar(lookAtSpot); | |
| 2367 | 2367 | updateMyAvatarLookAtPosition(lookAtSpot); |
| 2368 | 2368 | |
| 2369 | 2369 | // Find the voxel we are hovering over, and respond if clicked |