summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-05-12 18:05:57 -0500
committerDave Parks <davep@lindenlab.com>2010-05-12 18:05:57 -0500
commitde5b15b590770219927aa5bfb3911629d895fefe (patch)
treefbe17d37de36984e89b83ef2582afabc160b7e3e /indra/newview
parent3ad81349acccc9af2531121d5d6d89ad4e6ec0b2 (diff)
CTS-149 Get rid of camera minimum distance for meshes and when DisableCameraConstraints is TRUE.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentcamera.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index 9638d0e94f..f838af61a9 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -556,7 +556,9 @@ BOOL LLAgentCamera::calcCameraMinDistance(F32 &obj_min_distance)
{
BOOL soft_limit = FALSE; // is the bounding box to be treated literally (volumes) or as an approximation (avatars)
- if (!mFocusObject || mFocusObject->isDead())
+ if (!mFocusObject || mFocusObject->isDead() ||
+ mFocusObject->isMesh() ||
+ gSavedSettings.getBOOL("DisableCameraConstraints"))
{
obj_min_distance = 0.f;
return TRUE;