aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llselectmgr.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r--linden/indra/newview/llselectmgr.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 480273f..e4f914f 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -3437,12 +3437,20 @@ void LLSelectMgr::deselectAllIfTooFar()
3437 } 3437 }
3438 3438
3439 LLVector3d selectionCenter = getSelectionCenterGlobal(); 3439 LLVector3d selectionCenter = getSelectionCenterGlobal();
3440 if (gSavedSettings.getBOOL("LimitSelectDistance") 3440
3441// if (gSavedSettings.getBOOL("LimitSelectDistance")
3442// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f
3443 BOOL fRlvFartouch = gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH) && gFloaterTools->getVisible();
3444 if ( (gSavedSettings.getBOOL("LimitSelectDistance") || (fRlvFartouch) )
3445// [/RLVa:KB]
3441 && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar()) 3446 && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar())
3442 && !mSelectedObjects->isAttachment() 3447 && !mSelectedObjects->isAttachment()
3443 && !selectionCenter.isExactlyZero()) 3448 && !selectionCenter.isExactlyZero())
3444 { 3449 {
3445 F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance"); 3450// F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance");
3451// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f
3452 F32 deselect_dist = (!fRlvFartouch) ? gSavedSettings.getF32("MaxSelectDistance") : 1.5f;
3453// [/RLVa:KB]
3446 F32 deselect_dist_sq = deselect_dist * deselect_dist; 3454 F32 deselect_dist_sq = deselect_dist * deselect_dist;
3447 3455
3448 LLVector3d select_delta = gAgent.getPositionGlobal() - selectionCenter; 3456 LLVector3d select_delta = gAgent.getPositionGlobal() - selectionCenter;
@@ -4538,6 +4546,11 @@ extern LLGLdouble gGLModelView[16];
4538 4546
4539void LLSelectMgr::updateSilhouettes() 4547void LLSelectMgr::updateSilhouettes()
4540{ 4548{
4549 if (!mRenderSilhouettes || !LLSelectMgr::sRenderSelectionHighlights)
4550 {
4551 return;
4552 }
4553
4541 S32 num_sils_genned = 0; 4554 S32 num_sils_genned = 0;
4542 4555
4543 LLVector3d cameraPos = gAgent.getCameraPositionGlobal(); 4556 LLVector3d cameraPos = gAgent.getCameraPositionGlobal();