Some opts to avoid things that won't happen

This commit is contained in:
Liru Færs
2019-10-10 11:34:40 -04:00
parent 9824cc7068
commit 8c7e498861

View File

@@ -96,7 +96,7 @@ void LLNameUI::setNameText()
if (!mIsGroup && got_name && mRLVSensitive) // Filter if needed
{
if ((gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS))
&& mNameID.notNull() && mNameID != gAgentID && RlvUtil::isNearbyAgent(mNameID))
&& mNameID != gAgentID && RlvUtil::isNearbyAgent(mNameID))
{
mAllowInteract = false;
name = RlvStrings::getAnonym(name);
@@ -121,6 +121,7 @@ void LLNameUI::refresh(const LLUUID& id, const std::string& full_name, bool is_g
void LLNameUI::refreshAll(const LLUUID& id, const std::string& full_name, bool is_group)
{
if (!is_group) return;
for (auto box : sInstances)
{
box->refresh(id, full_name, is_group);