HUD of DEATH fix
This commit is contained in:
@@ -1140,8 +1140,10 @@ void LLSelectMgr::getGrid(LLVector3& origin, LLQuaternion &rotation, LLVector3 &
|
|||||||
{
|
{
|
||||||
// this means this object *has* to be an attachment
|
// this means this object *has* to be an attachment
|
||||||
LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent();
|
LLXform* attachment_point_xform = first_object->getRootEdit()->mDrawable->mXform.getParent();
|
||||||
mGridOrigin = attachment_point_xform->getWorldPosition();
|
if(attachment_point_xform) {
|
||||||
mGridRotation = attachment_point_xform->getWorldRotation();
|
mGridOrigin = attachment_point_xform->getWorldPosition();
|
||||||
|
mGridRotation = attachment_point_xform->getWorldRotation();
|
||||||
|
}
|
||||||
mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution");
|
mGridScale = LLVector3(1.f, 1.f, 1.f) * gSavedSettings.getF32("GridResolution");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user