MAINT-5893 FIXED Issue with muted agent's attached lighting still rendering.

meow-7.2.2
Mnikolenko ProductEngine 2015-11-24 14:25:08 +02:00
parent ae75d8cf67
commit c305f89881
1 changed files with 7 additions and 0 deletions

View File

@ -6111,6 +6111,13 @@ void LLPipeline::calcNearbyLights(LLCamera& camera)
{
const Light* light = &(*iter);
LLDrawable* drawable = light->drawable;
const LLViewerObject *vobj = light->drawable->getVObj();
if(vobj && vobj->getAvatar() && vobj->getAvatar()->isInMuteList())
{
drawable->clearState(LLDrawable::NEARBY_LIGHT);
continue;
}
LLVOVolume* volight = drawable->getVOVolume();
if (!volight || !drawable->isState(LLDrawable::LIGHT))
{