SL-20430 Camera won't follow avatar above 1024m

Partially reverts SL-20206 commit 25388312cf
master
Andrey Kleshchev 2023-10-09 21:03:45 +03:00
parent 03d2dc5d2c
commit 8db118bbe7
1 changed files with 0 additions and 8 deletions

View File

@ -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;