summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-02-24 14:31:46 -0800
committerJames Cook <james@lindenlab.com>2010-02-24 14:31:46 -0800
commitf3e0e9a5264a80d146a1d4d77fd9c4f5d3070278 (patch)
treedcefc0dd92c17186fc09e232e06e6db1c10bc6db /indra/newview/llvoavatar.cpp
parent649bdf412f4cead9721b5393d3929b6fbd6df272 (diff)
Hack to refresh name tags when I change my display name.
Also fixes a crash when turning on display names.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 2cd1d48aa0..ac91ded18b 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -2829,7 +2829,7 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
// ...call this function back when the name arrives
// and force a rebuild
LLAvatarNameCache::get(getID(),
- boost::bind(&LLVOAvatar::idleUpdateNameTagText, this, TRUE));
+ boost::bind(&LLVOAvatar::invalidateName, this));
}
// Might be blank if name not available yet, that's OK
@@ -7629,6 +7629,13 @@ std::string LLVOAvatar::getFullname() const
return name;
}
+// IDEVO
+void LLVOAvatar::invalidateName()
+{
+ // force update by clearing name string
+ mNameString.clear();
+}
+
LLHost LLVOAvatar::getObjectHost() const
{
LLViewerRegion* region = getRegion();