summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-05-16 12:26:17 -0500
committerDave Parks <davep@lindenlab.com>2022-05-16 12:26:17 -0500
commitb2141e94465998d13ab4b5d894b0edcdad0e8216 (patch)
treecba0541baffa141e9e3e2aecd16ce8cd9457c88c /indra/newview/llface.cpp
parent3400e5fd302c0d9dea6386c4d5bf38876f2cc287 (diff)
parent63095005578007345d9916ebc6855246cdb08c7c (diff)
Merge remote-tracking branch 'remotes/origin/DRTVWR-546' into DRTVWR-559
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index d1e2b8b93d..d0c26bc43b 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -2377,7 +2377,7 @@ BOOL LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius)
{
//override with avatar bounding box
LLVOAvatar* avatar = mVObjp->getAvatar();
- if (avatar)
+ if (avatar && avatar->mDrawable)
{
center.load3(avatar->getPositionAgent().mV);
const LLVector4a* exts = avatar->mDrawable->getSpatialExtents();