summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2021-04-30 10:56:08 -0700
committerPtolemy <ptolemy@lindenlab.com>2021-04-30 10:56:08 -0700
commit176e56d3e8ddc7f937b2b67c005d7a210e2526a1 (patch)
tree1b5c2dc41735d4aaf440b3b80f5bb9bd7cbea5e9 /indra/newview
parentd1875c4932ea83decf871a7fccf871fcfe4d01ea (diff)
SL-14885: Use LLCachedControl
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentcamera.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index 86d2b0fc6c..0cf91ba3de 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -2039,7 +2039,8 @@ 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"))
+ static LLCachedControl<bool> s_disable_camera_constraints(gSavedSettings, "DisableCameraConstraints", false);
+ if (s_disable_camera_constraints)
{
return (F32)INT_MAX;
}