summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;