diff options
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index 998cc50..af97e2e 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -3451,12 +3451,20 @@ void LLSelectMgr::deselectAllIfTooFar() | |||
3451 | } | 3451 | } |
3452 | 3452 | ||
3453 | LLVector3d selectionCenter = getSelectionCenterGlobal(); | 3453 | LLVector3d selectionCenter = getSelectionCenterGlobal(); |
3454 | if (gSavedSettings.getBOOL("LimitSelectDistance") | 3454 | |
3455 | // if (gSavedSettings.getBOOL("LimitSelectDistance") | ||
3456 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f | ||
3457 | BOOL fRlvFartouch = gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH) && gFloaterTools->getVisible(); | ||
3458 | if ( (gSavedSettings.getBOOL("LimitSelectDistance") || (fRlvFartouch) ) | ||
3459 | // [/RLVa:KB] | ||
3455 | && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar()) | 3460 | && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar()) |
3456 | && !mSelectedObjects->isAttachment() | 3461 | && !mSelectedObjects->isAttachment() |
3457 | && !selectionCenter.isExactlyZero()) | 3462 | && !selectionCenter.isExactlyZero()) |
3458 | { | 3463 | { |
3459 | F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance"); | 3464 | // F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance"); |
3465 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f | ||
3466 | F32 deselect_dist = (!fRlvFartouch) ? gSavedSettings.getF32("MaxSelectDistance") : 1.5f; | ||
3467 | // [/RLVa:KB] | ||
3460 | F32 deselect_dist_sq = deselect_dist * deselect_dist; | 3468 | F32 deselect_dist_sq = deselect_dist * deselect_dist; |
3461 | 3469 | ||
3462 | LLVector3d select_delta = gAgent.getPositionGlobal() - selectionCenter; | 3470 | LLVector3d select_delta = gAgent.getPositionGlobal() - selectionCenter; |
@@ -4552,6 +4560,11 @@ extern LLGLdouble gGLModelView[16]; | |||
4552 | 4560 | ||
4553 | void LLSelectMgr::updateSilhouettes() | 4561 | void LLSelectMgr::updateSilhouettes() |
4554 | { | 4562 | { |
4563 | if (!mRenderSilhouettes || !LLSelectMgr::sRenderSelectionHighlights) | ||
4564 | { | ||
4565 | return; | ||
4566 | } | ||
4567 | |||
4555 | S32 num_sils_genned = 0; | 4568 | S32 num_sils_genned = 0; |
4556 | 4569 | ||
4557 | LLVector3d cameraPos = gAgent.getCameraPositionGlobal(); | 4570 | LLVector3d cameraPos = gAgent.getCameraPositionGlobal(); |