mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:25:00 +02:00
My Avatar's display name is shown
This commit is contained in:
parent
59f8851b50
commit
a6b202ccbe
1 changed files with 10 additions and 0 deletions
|
@ -632,10 +632,20 @@ float Avatar::getPelvisToHeadLength() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Avatar::setShowDisplayName(bool showDisplayName) {
|
void Avatar::setShowDisplayName(bool showDisplayName) {
|
||||||
|
// For myAvatar, the alpha update is not done (called in simulate for other avatars)
|
||||||
|
if (Application::getInstance()->getAvatar() == this) {
|
||||||
|
if (showDisplayName) {
|
||||||
|
_displayNameAlpha = DISPLAYNAME_ALPHA;
|
||||||
|
} else {
|
||||||
|
_displayNameAlpha = 0.0f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (showDisplayName) {
|
if (showDisplayName) {
|
||||||
_displayNameTargetAlpha = DISPLAYNAME_ALPHA;
|
_displayNameTargetAlpha = DISPLAYNAME_ALPHA;
|
||||||
} else {
|
} else {
|
||||||
_displayNameTargetAlpha = 0.0f;
|
_displayNameTargetAlpha = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue