summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2021-04-13 13:12:44 -0700
committerPtolemy <ptolemy@lindenlab.com>2021-04-13 13:12:44 -0700
commit4dd6b6b2bea93cd37d908f597482a42e80d3e8bb (patch)
tree58fcabb0c943fa56a0111b3dd7edaa791cedd5f5
parentcaabb384bdb5d0d78023d1d9fd155838f022c186 (diff)
SL-14885 Allow mousewheel to zoom way out when user has disabled camera constraints
-rw-r--r--indra/newview/llagentcamera.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index ed6c3c307f..86d2b0fc6c 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -2038,6 +2038,12 @@ LLVector3d LLAgentCamera::getFocusOffsetInitial()
F32 LLAgentCamera::getCameraMaxZoomDistance()
{
+ // SL-14706 / SL-14885 TPV have relaxed camera constraints allowing you to mousewheeel zoom WAY out.
+ if (gSavedSettings.getBOOL("DisableCameraConstraints"))
+ {
+ return (F32)INT_MAX;
+ }
+
// Ignore "DisableCameraConstraints", we don't want to be out of draw range when we focus onto objects or avatars
return llmin(MAX_CAMERA_DISTANCE_FROM_OBJECT,
mDrawDistance - 1, // convenience, don't hit draw limit when focusing on something