diff options
author | James Cook <james@lindenlab.com> | 2010-04-26 10:51:42 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-04-26 10:51:42 -0700 |
commit | d89de271437f35f9d26e28409e6cc1d593a2fc7a (patch) | |
tree | 8cea7005d835a2706939657aef8a552c342b1449 /indra/newview/llvoavatar.cpp | |
parent | c1ff7147974a031643776d8ea950f1bc1466737c (diff) |
DEV-47529 Viewer turns display names on/off based on region capability
Also refreshes name tags so you can see the state.
Reviewed with Kelly.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 881012467e..9e56357b30 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3017,6 +3017,20 @@ void LLVOAvatar::invalidateNameTag(const LLUUID& agent_id) avatar->clearNameTag(); } +//static +void LLVOAvatar::invalidateNameTags() +{ + std::vector<LLCharacter*>::iterator it = LLCharacter::sInstances.begin(); + for ( ; it != LLCharacter::sInstances.end(); ++it) + { + LLVOAvatar* avatar = dynamic_cast<LLVOAvatar*>(*it); + if (!avatar) continue; + if (avatar->isDead()) continue; + + avatar->clearNameTag(); + } +} + // Compute name tag position during idle update LLVector3 LLVOAvatar::idleUpdateNameTagPosition(const LLVector3& root_pos_last) { |