diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-09-17 15:29:00 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-09-22 17:51:00 +0300 |
commit | a68ca665ade56d21a8c939a7e26332f1de413698 (patch) | |
tree | 3e2865f2c329e3d999cdf27cf55d02c859e2c235 /indra/newview | |
parent | 014dd037dde0a93f6c591618e4c111c6b598b60e (diff) |
SL-15958 Stop impostored avatars from casting shadows
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldrawpoolavatar.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index c7aa104ca5..d8491d60ee 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -583,10 +583,9 @@ void LLDrawPoolAvatar::renderShadow(S32 pass) } LLVOAvatar::AvatarOverallAppearance oa = avatarp->getOverallAppearance(); BOOL impostor = !LLPipeline::sImpostorRender && avatarp->isImpostor(); - if (oa == LLVOAvatar::AOA_INVISIBLE || - (impostor && oa == LLVOAvatar::AOA_JELLYDOLL)) + if (impostor || (oa == LLVOAvatar::AOA_INVISIBLE)) { - // No shadows for jellydolled or invisible avs. + // No shadows for impostored (including jellydolled) or invisible avs. return; } |