diff options
author | mobserveur <mobserveur@gmail.com> | 2024-06-28 13:43:29 +0200 |
---|---|---|
committer | mobserveur <mobserveur@gmail.com> | 2024-06-28 13:43:29 +0200 |
commit | 5d578f69df6ad00e51d1c2902a1f304f4d942e61 (patch) | |
tree | 8058250d9843b61cb76c8caa20c05dcb18bdcb81 /indra/newview/llagentcamera.cpp | |
parent | d5217ec883e298e3cee4149cfb46f952391e83d1 (diff) |
Faster Zoom in avatars
Adjusted value for MAX_ANIM_SECONDS in llagentcamera.cpp
Diffstat (limited to 'indra/newview/llagentcamera.cpp')
-rw-r--r-- | indra/newview/llagentcamera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 1912d9d1d5..8e8d7e6c50 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -2663,9 +2663,9 @@ void LLAgentCamera::setCameraPosAndFocusGlobal(const LLVector3d& camera_pos, con if (mCameraAnimating) { - const F64 ANIM_METERS_PER_SECOND = 10.0; + const F64 ANIM_METERS_PER_SECOND = 15.0; const F64 MIN_ANIM_SECONDS = 0.5; - const F64 MAX_ANIM_SECONDS = 10.0; + const F64 MAX_ANIM_SECONDS = 3.0; F64 anim_duration = llmax( MIN_ANIM_SECONDS, sqrt(focus_delta_squared) / ANIM_METERS_PER_SECOND ); anim_duration = llmin( anim_duration, MAX_ANIM_SECONDS ); setAnimationDuration( (F32)anim_duration ); |