summaryrefslogtreecommitdiff
path: root/indra/newview/llagentcamera.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-09 21:03:45 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-09 21:05:54 +0300
commit8db118bbe7e651c5363583f86dee4ab8f399eba1 (patch)
tree779e57930e9a773e32e567348105deda0801ea0f /indra/newview/llagentcamera.cpp
parent03d2dc5d2c53abac8471c3d6e2972637d4575f87 (diff)
SL-20430 Camera won't follow avatar above 1024m
Partially reverts SL-20206 commit 25388312cf28f8b30934ac3885783a96a3b2ed69
Diffstat (limited to 'indra/newview/llagentcamera.cpp')
-rw-r--r--indra/newview/llagentcamera.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index 6e8784b726..6d74249e80 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -2004,14 +2004,6 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit)
isConstrained = TRUE;
}
- // Don't let camera go abovesky
- F32 maxZ = LLWorld::getInstance()->getRegionMaxHeight() * 0.25 - F_ALMOST_ZERO;
- if (camera_position_global.mdV[VZ] > maxZ)
- {
- camera_position_global.mdV[VZ] = maxZ;
- isConstrained = TRUE;
- }
-
if (hit_limit)
{
*hit_limit = isConstrained;