From 1049f15c9cbb3d9fdd3f1f8529b7ca46c5f2b7f3 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 9 Sep 2020 15:36:41 +0100 Subject: SL-13541 - don't show shadow of invisible avatars --- indra/newview/lldrawpoolavatar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview') 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; -- cgit v1.2.3