STORM-1045 : pull into viewer-development
commit
be9bae601c
|
|
@ -156,6 +156,7 @@ Ann Congrejo
|
|||
CT-193
|
||||
Ardy Lay
|
||||
VWR-19499
|
||||
VWR-24917
|
||||
Argent Stonecutter
|
||||
VWR-68
|
||||
Armin Weatherwax
|
||||
|
|
|
|||
|
|
@ -90,14 +90,16 @@ void LLAvatarName::fromLLSD(const LLSD& sd)
|
|||
std::string LLAvatarName::getCompleteName() const
|
||||
{
|
||||
std::string name;
|
||||
if (!mUsername.empty())
|
||||
if (mUsername.empty() || mIsDisplayNameDefault)
|
||||
// If the display name feature is off
|
||||
// OR this particular display name is defaulted (i.e. based on user name),
|
||||
// then display only the easier to read instance of the person's name.
|
||||
{
|
||||
name = mDisplayName + " (" + mUsername + ")";
|
||||
name = mDisplayName;
|
||||
}
|
||||
else
|
||||
{
|
||||
// ...display names are off, legacy name is in mDisplayName
|
||||
name = mDisplayName;
|
||||
name = mDisplayName + " (" + mUsername + ")";
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue