Null check, sooner is better, and clang is happy. Thanks Liru.

This commit is contained in:
Router Gray
2019-05-24 10:55:33 -05:00
parent df13aa408b
commit 562982cc30

View File

@@ -977,12 +977,12 @@ void LLFace::getPlanarProjectedParams(LLQuaternion* face_rot, LLVector3* face_po
{
const LLMatrix4a& vol_mat = getWorldMatrix();
const LLVolumeFace& vf = getViewerObject()->getVolume()->getVolumeFace(mTEOffset);
const LLVector4a& normal = vf.mNormals[0];
const LLVector4a& tangent = vf.mTangents[0];
if (!&tangent)
if (!vf.mTangents)
{
return;
}
const LLVector4a& normal = vf.mNormals[0];
const LLVector4a& tangent = vf.mTangents[0];
LLVector4a binormal;
binormal.setCross3(normal, tangent);