summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2022-04-14 15:29:05 -0400
committerNat Goodspeed <nat@lindenlab.com>2022-04-14 15:29:05 -0400
commit557fb2cccdb8f267c38f0b2dc88ce939bf1ccc21 (patch)
treee2d8973113c61cd77454af38045c5b41361318b4
parent0dc325c1e9de059d36c7b0e2c6ba997160ff1f53 (diff)
SL-17218: Update faulty test for null LLFace::mTangents
-rw-r--r--indra/newview/llface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index f1b64a5899..547d9dad38 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1028,11 +1028,11 @@ 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];
- const LLVector4a& tangent = vf.mTangents[0];
- if (!&tangent)
+ if (! vf.mTangents)
{
return;
}
+ const LLVector4a& tangent = *vf.mTangents;
LLVector4a binormal4a;
binormal4a.setCross3(normal4a, tangent);