Name tag should now update consistently upon change via namefromchat bridge

This commit is contained in:
Shyotl
2011-04-09 00:30:15 -05:00
parent fcc98ffe46
commit b390d74b9c
2 changed files with 8 additions and 10 deletions

View File

@@ -3881,7 +3881,8 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
(title && mTitle != title->getString()) ||
(is_away != mNameAway || is_busy != mNameBusy || is_muted != mNameMute) ||
is_appearance != mNameAppearance || client != mClientName ||
mNameFromAttachment != nameplate)
mNameFromAttachment != nameplate ||
mNameFromChatChanged)
{
mRenderedName = usedname;
mNameFromAttachment = nameplate;
@@ -3933,6 +3934,7 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
line = "%f\n%l";
}
}
mNameFromChatChanged = false;
// replace first name, last name and title
while ((index = line.find("%f")) != std::string::npos)