History

Moved LookAtTargetAvatar stuff from AvatarManager to MyAvatar.

Andrew Meadows committed 12 years ago

Commit a7ffb7d1 parent 1b99bc95 files · +48 −51Browse files

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

Unified · Split

interface/src/Application.cpp+4−4
@@ -1196,8 +1196,8 @@ void Application::mouseMoveEvent(QMouseEvent* event) { · 1195 unmodified lines
11961196 if (activeWindow() == _window) {
11971197 // orbit behavior
11981198 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);
12011201 return;
12021202 }
12031203 if (_isHoverVoxel) {
@@ -1256,7 +1256,7 @@ void Application::mousePressEvent(QMouseEvent* event) { · 52 unmodified lines
12561256 return;
12571257 }
12581258
1259− if (!_palette.isActive() && (!_isHoverVoxel || _avatarManager.getLookAtTargetAvatar())) {
1259+ if (!_palette.isActive() && (!_isHoverVoxel || _myAvatar->getLookAtTargetAvatar())) {
12601260 // disable for now
12611261 // _pieMenu.mousePressEvent(_mouseX, _mouseY);
12621262 }
@@ -2363,7 +2363,7 @@ void Application::update(float deltaTime) { · 1100 unmodified lines
23632363 glm::vec3 lookAtSpot;
23642364
23652365 updateFaceshift();
2366− _avatarManager.updateLookAtTargetAvatar(lookAtSpot);
2366+ _myAvatar->updateLookAtTargetAvatar(lookAtSpot);
23672367 updateMyAvatarLookAtPosition(lookAtSpot);
23682368
23692369 // Find the voxel we are hovering over, and respond if clicked

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