From 8db118bbe7e651c5363583f86dee4ab8f399eba1 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 9 Oct 2023 21:03:45 +0300 Subject: SL-20430 Camera won't follow avatar above 1024m Partially reverts SL-20206 commit 25388312cf28f8b30934ac3885783a96a3b2ed69 --- indra/newview/llagentcamera.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'indra/newview') 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; -- cgit v1.2.3