Fixed issue where blacklist check was not applied to objects
parent
b46f7b1c74
commit
f2568ce152
|
|
@ -6597,9 +6597,20 @@ void LLViewerObject::setAttachedSound(const LLUUID &audio_uuid, const LLUUID& ow
|
|||
}
|
||||
|
||||
// <FS:Ansariel> Asset blacklist
|
||||
if (FSAssetBlacklist::getInstance()->isBlacklisted(audio_uuid, LLAssetType::AT_SOUND))
|
||||
FSAssetBlacklist& blacklist = FSAssetBlacklist::instance();
|
||||
if (blacklist.isBlacklisted(sound_id, LLAssetType::AT_SOUND))
|
||||
{
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
else if (isAttachment() && blacklist.isBlacklisted(owner_id, LLAssetType::AT_SOUND, FSAssetBlacklist::eBlacklistFlag::WORN))
|
||||
{
|
||||
// Attachment sound
|
||||
return true;
|
||||
}
|
||||
else if (blacklist.isBlacklisted(owner_id, LLAssetType::AT_SOUND, FSAssetBlacklist::eBlacklistFlag::REZZED))
|
||||
{
|
||||
// Rezzed object sound
|
||||
return true;
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue