aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llselectmgr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index f1092e7..7d573ea 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -1134,10 +1134,11 @@ void LLSelectMgr::getGrid(LLVector3& origin, LLQuaternion &rotation, LLVector3 &
1134 { 1134 {
1135 // this means this object *has* to be an attachment 1135 // this means this object *has* to be an attachment
1136 LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent(); 1136 LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent();
1137 if (attachment_point_xform) 1137 // But it might be a hair HUD of death. Or maybe a tree? Yes, I know I broke the grammer rules twice in a row, this is source code, English sucks. C++ sucks to, but at least the compiler is not expected to parse comments.
1138 if (attachment_point_xform)
1138 { 1139 {
1139 mGridOrigin = attachment_point_xform->getWorldPosition(); 1140 mGridOrigin = attachment_point_xform->getWorldPosition();
1140 mGridRotation = attachment_point_xform->getWorldRotation(); 1141 mGridRotation = attachment_point_xform->getWorldRotation();
1141 } 1142 }
1142 mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution"); 1143 mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution");
1143 } 1144 }