From 562982cc30984ea24db34f6691397f69455fd67f Mon Sep 17 00:00:00 2001 From: Router Gray Date: Fri, 24 May 2019 10:55:33 -0500 Subject: [PATCH] Null check, sooner is better, and clang is happy. Thanks Liru. --- indra/newview/llface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 50eb3a7d8..8cde987a9 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -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);