With previous code update muting a sound by its UUID will add a flag NONE, then checking the existence of a flag is not enough we have to be sure flag value is 0

meow-7.2.2
Rohacan Hirons 2025-06-11 12:38:41 +02:00
parent a2135521de
commit 0e41374743
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ void FSAssetBlacklist::addNewItemToBlacklistData(const LLUUID& id, const LLSD& d
mBlacklistData[id] = data;
}
if (type == LLAssetType::AT_SOUND && !data.has("flag"))
if (type == LLAssetType::AT_SOUND && data["flag"].asInteger() == 0)
{
LLFileSystem::removeFile(id, LLAssetType::AT_SOUND);
std::string wav_path = gDirUtilp->getExpandedFilename(LL_PATH_FS_SOUND_CACHE, id.asString()) + ".dsf";