diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2022-04-14 15:48:09 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2022-04-14 15:48:09 -0400 |
commit | b9ed5f9e79799d1b180b9b548c1093d771154d5e (patch) | |
tree | 1859ce14fd39900336266fa93b34a78b27d0c1b6 | |
parent | 4e282db26bc0348460f94b7cf8735d385c2896c2 (diff) |
SL-17218: Per NickyD review feedback, test LLFace::mNormals too.
-rw-r--r-- | indra/newview/llface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 547d9dad38..2e32ffca26 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1027,12 +1027,12 @@ void LLFace::getPlanarProjectedParams(LLQuaternion* face_rot, LLVector3* face_po { const LLMatrix4& vol_mat = getWorldMatrix(); const LLVolumeFace& vf = getViewerObject()->getVolume()->getVolumeFace(mTEOffset); - const LLVector4a& normal4a = vf.mNormals[0]; - if (! vf.mTangents) + if (! (vf.mNormals && vf.mTangents)) { return; } - const LLVector4a& tangent = *vf.mTangents; + const LLVector4a& normal4a = *vf.mNormals; + const LLVector4a& tangent = *vf.mTangents; LLVector4a binormal4a; binormal4a.setCross3(normal4a, tangent); |