summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-03-18 20:06:25 +0100
committerCho <cho@lindenlab.com>2013-03-18 20:06:25 +0100
commit22203b43db851a611adbaa2413bc92a14dd7f951 (patch)
tree0f33d0c0d97542a5090543b6d7a409689ff84393
parenta079acf1aa3b7cfe8ee35bb7afdbae83df0df5ca (diff)
CHUI-826 FIX [CHUIBUG]User nametags (nametag floaters) intermittently disappear in CHUI builds.
Added check in LLVOAvatar::idleUpdateNameTagText() to account for case where mNameString is literally "" (two quotes)
-rw-r--r--indra/newview/llvoavatar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index c74d9f1292..d295fc60cd 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3097,6 +3097,7 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name)
// Rebuild name tag if state change detected
if (mNameString.empty()
+ || (mNameString.size() == 2 && mNameString[0] == 10 && mNameString[1] == 10) // *TODO : find out why mNameString is sometimes ""
|| new_name
|| (!title && !mTitle.empty())
|| (title && mTitle != title->getString())