Merge llnameui changes from future branch to use lighter rlv headers

This commit is contained in:
Liru Færs
2019-11-07 13:55:07 -05:00
parent 4e39027958
commit b78807e5ed

View File

@@ -40,7 +40,8 @@
#include "llgroupactions.h"
#include "lltrans.h"
#include "rlvhandler.h"
#include "rlvactions.h"
#include "rlvcommon.h"
// statics
std::set<LLNameUI*> LLNameUI::sInstances;
@@ -97,7 +98,7 @@ void LLNameUI::setNameText()
if (!mIsGroup && got_name && mRLVSensitive) // Filter if needed
{
if ((gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) || gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMETAGS))
if ((RlvActions::hasBehaviour(RLV_BHVR_SHOWNAMES) || RlvActions::hasBehaviour(RLV_BHVR_SHOWNAMETAGS))
&& mNameID != gAgentID && RlvUtil::isNearbyAgent(mNameID))
{
mAllowInteract = false;