diff options
author | James Cook <james@lindenlab.com> | 2010-03-23 11:41:33 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-03-23 11:41:33 -0700 |
commit | d2f9e34598621f1dabad15025417efd6b81dddf0 (patch) | |
tree | d8638c7aea3e158fad26263dbfe41185a421c1a5 /indra/newview/llvoavatar.cpp | |
parent | 639b234762133e4d09d6d7b1bac9d25c5a681926 (diff) |
Part DEV-47695 route display name changes via sim for rebroadcast to
nearby avatars for name tag updates and to update cached display name
for LSL nonblocking functions
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 4c8bb0ac13..f3850d58a1 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3004,6 +3004,18 @@ void LLVOAvatar::clearNameTag() } } +//static +void LLVOAvatar::invalidateNameTag(const LLUUID& agent_id) +{ + LLViewerObject* obj = gObjectList.findObject(agent_id); + if (!obj) return; + + LLVOAvatar* avatar = dynamic_cast<LLVOAvatar*>(obj); + if (!avatar) return; + + avatar->clearNameTag(); +} + // Compute name tag position during idle update LLVector3 LLVOAvatar::idleUpdateNameTagPosition(const LLVector3& root_pos_last) { |