aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r--linden/indra/newview/llselectmgr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 78b921b..2e4983c 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -3450,7 +3450,9 @@ void LLSelectMgr::deselectAllIfTooFar()
3450 } 3450 }
3451 3451
3452 LLVector3d selectionCenter = getSelectionCenterGlobal(); 3452 LLVector3d selectionCenter = getSelectionCenterGlobal();
3453 if (gSavedSettings.getBOOL("LimitSelectDistance") 3453 if (gSavedSettings.getBOOL("LimitSelectDistance")
3454 && (!mSelectedObjects->getPrimaryObject() || !mSelectedObjects->getPrimaryObject()->isAvatar())
3455 && !mSelectedObjects->isAttachment()
3454 && !selectionCenter.isExactlyZero()) 3456 && !selectionCenter.isExactlyZero())
3455 { 3457 {
3456 F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance"); 3458 F32 deselect_dist = gSavedSettings.getF32("MaxSelectDistance");