diff options
author | McCabe Maxsted | 2011-04-05 00:07:38 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-05 00:09:20 -0700 |
commit | a36573214b729bfd461ac5913936ed9aafc1a3fa (patch) | |
tree | a364df2cebdacec4cc71dbea98ef40ab1df226e3 /linden/indra/newview | |
parent | Fixed quicktime not being used for m4v files on Windows (diff) | |
download | meta-impy-a36573214b729bfd461ac5913936ed9aafc1a3fa.zip meta-impy-a36573214b729bfd461ac5913936ed9aafc1a3fa.tar.gz meta-impy-a36573214b729bfd461ac5913936ed9aafc1a3fa.tar.bz2 meta-impy-a36573214b729bfd461ac5913936ed9aafc1a3fa.tar.xz |
Fixed viewer crash when hair etc. is attached to the HUD, ported from Singularity, patch by Tom Meta
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 7 |
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; |