diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-09-25 23:57:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 23:57:54 +0300 |
commit | 7e2ff9d1e709f97e56f8fba17dd1a750da2f4a89 (patch) | |
tree | 515688aab142444a0ae281fa806b8c31139e9528 /indra | |
parent | 017d9d2affd12000666cd0c3f56d6ebfd8bfa9f9 (diff) |
SL-20276 shape thumbnails should display front of avatar regardless of 'AppearanceCameraMovement' setting
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltoolmorph.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/lltoolmorph.cpp b/indra/newview/lltoolmorph.cpp index d99c0ba2a6..e937c499ae 100644 --- a/indra/newview/lltoolmorph.cpp +++ b/indra/newview/lltoolmorph.cpp @@ -223,6 +223,13 @@ BOOL LLVisualParamHint::render() LLVector3 target_pos = target_joint_pos + (target_offset * avatar_rotation); F32 cam_angle_radians = mVisualParam->getCameraAngle() * DEG_TO_RAD; + + static LLCachedControl<bool> auto_camera_position(gSavedSettings, "AppearanceCameraMovement"); + if (!auto_camera_position) + { + cam_angle_radians += F_PI; + } + LLVector3 camera_snapshot_offset( mVisualParam->getCameraDistance() * cosf( cam_angle_radians ), mVisualParam->getCameraDistance() * sinf( cam_angle_radians ), |