summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2020-09-09 15:36:41 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2020-09-09 15:36:41 +0100
commit1049f15c9cbb3d9fdd3f1f8529b7ca46c5f2b7f3 (patch)
tree43f6731e3f910702651a4c6b0da8128ef067a024 /indra/newview
parent9b41f1a8254da705f1433ecd29a1b6ff3ad39584 (diff)
SL-13541 - don't show shadow of invisible avatars
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lldrawpoolavatar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp
index 0fe0a637a4..cc51b08cc7 100644
--- a/indra/newview/lldrawpoolavatar.cpp
+++ b/indra/newview/lldrawpoolavatar.cpp
@@ -582,10 +582,10 @@ void LLDrawPoolAvatar::renderShadow(S32 pass)
{
return;
}
-
+ LLVOAvatar::AvatarOverallAppearance oa = avatarp->getOverallAppearance();
BOOL impostor = avatarp->isImpostor();
- if (impostor
- && LLVOAvatar::AOA_NORMAL != avatarp->getOverallAppearance())
+ if (oa == LLVOAvatar::AOA_INVISIBLE ||
+ (impostor && oa == LLVOAvatar::AOA_JELLYDOLL))
{
// No shadows for jellydolled or invisible avs.
return;