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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index ebfdd39..2e4983c 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -1102,7 +1102,7 @@ void LLSelectMgr::getGrid(LLVector3& origin, LLQuaternion &rotation, LLVector3 &
1102 switch (mSelectedObjects->mSelectType) 1102 switch (mSelectedObjects->mSelectType)
1103 { 1103 {
1104 case SELECT_TYPE_ATTACHMENT: 1104 case SELECT_TYPE_ATTACHMENT:
1105 if (first_object) 1105 if (first_object && first_object->getRootEdit()->mDrawable.notNull())
1106 { 1106 {
1107 // this means this object *has* to be an attachment 1107 // this means this object *has* to be an attachment
1108 LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent(); 1108 LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent();
@@ -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");