aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/newview/llselectmgr.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index b0a6834..f1092e7 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -1134,8 +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 mGridOrigin = attachment_point_xform->getWorldPosition(); 1137 if (attachment_point_xform)
1138 mGridRotation = attachment_point_xform->getWorldRotation(); 1138 {
1139 mGridOrigin = attachment_point_xform->getWorldPosition();
1140 mGridRotation = attachment_point_xform->getWorldRotation();
1141 }
1139 mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution"); 1142 mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution");
1140 } 1143 }
1141 break; 1144 break;