diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-08-31 18:12:02 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-08-31 18:12:22 +0300 |
commit | 59fc1ce288cf11839f4967c50bd1dedb2fde378d (patch) | |
tree | 4f17addccac539b3bff5213f4b6ddf2fe8c93dc6 /indra | |
parent | 9e4549117d86f686c50cc68b423eeb5f98999230 (diff) |
SL-10659 Sometimes selection particles misbehave when selecting Animesh
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llagentcamera.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 0592300e8f..7348b4f496 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -404,10 +404,9 @@ LLVector3 LLAgentCamera::calcFocusOffset(LLViewerObject *object, LLVector3 origi LLQuaternion obj_rot = object->getRenderRotation(); LLVector3 obj_pos = object->getRenderPosition(); - BOOL is_avatar = object->isAvatar(); // if is avatar - don't do any funk heuristics to position the focal point // see DEV-30589 - if (is_avatar) + if (object->isAvatar() || (object->isAnimatedObject() && object->getControlAvatar())) { return original_focus_point - obj_pos; } @@ -532,7 +531,6 @@ LLVector3 LLAgentCamera::calcFocusOffset(LLViewerObject *object, LLVector3 origi // or keep the focus point in the object middle when (relatively) far // NOTE: leave focus point in middle of avatars, since the behavior you want when alt-zooming on avatars // is almost always "tumble about middle" and not "spin around surface point" - if (!is_avatar) { LLVector3 obj_rel = original_focus_point - object->getRenderPosition(); |