diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index f1092e7..4a6c8ed 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -92,6 +92,8 @@ | |||
92 | 92 | ||
93 | #include "llglheaders.h" | 93 | #include "llglheaders.h" |
94 | 94 | ||
95 | #include "hippolimits.h" | ||
96 | |||
95 | // [RLVa:KB] | 97 | // [RLVa:KB] |
96 | #include "rlvhandler.h" | 98 | #include "rlvhandler.h" |
97 | // [/RLVa:KB] | 99 | // [/RLVa:KB] |
@@ -3494,15 +3496,15 @@ void LLSelectMgr::deselectAllIfTooFar() | |||
3494 | // if (gSavedSettings.getBOOL("LimitSelectDistance") | 3496 | // if (gSavedSettings.getBOOL("LimitSelectDistance") |
3495 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f | 3497 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f |
3496 | BOOL fRlvFartouch = gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH) && gFloaterTools->getVisible(); | 3498 | BOOL fRlvFartouch = gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH) && gFloaterTools->getVisible(); |
3497 | if ( (gSavedSettings.getBOOL("LimitSelectDistance") || (fRlvFartouch) ) | 3499 | if ( ((!gSavedSettings.getBOOL("DisableMaxBuildConstraints") && gSavedSettings.getBOOL("LimitSelectDistance")) || (fRlvFartouch) ) |
3498 | // [/RLVa:KB] | 3500 | // [/RLVa:KB] |
3499 | && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar()) | 3501 | && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar()) |
3500 | && !mSelectedObjects->isAttachment() | 3502 | && !mSelectedObjects->isAttachment() |
3501 | && !selectionCenter.isExactlyZero()) | 3503 | && !selectionCenter.isExactlyZero()) |
3502 | { | 3504 | { |
3503 | // F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance"); | 3505 | // F32 deselect_dist = gHippoLimits->getMaxSelectDistance(); |
3504 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f | 3506 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0f |
3505 | F32 deselect_dist = (!fRlvFartouch) ? gSavedSettings.getF32("MaxSelectDistance") : 1.5f; | 3507 | F32 deselect_dist = (!fRlvFartouch) ? gHippoLimits->getMaxSelectDistance() : 1.5f; |
3506 | // [/RLVa:KB] | 3508 | // [/RLVa:KB] |
3507 | F32 deselect_dist_sq = deselect_dist * deselect_dist; | 3509 | F32 deselect_dist_sq = deselect_dist * deselect_dist; |
3508 | 3510 | ||