mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +02:00
Fix display name not getting cleared
This commit is contained in:
parent
733b0feabd
commit
7897bf8aa8
1 changed files with 6 additions and 4 deletions
|
@ -2052,11 +2052,13 @@ void AvatarData::fromJson(const QJsonObject& json, bool useFrameSkeleton) {
|
||||||
setSkeletonModelURL(bodyModelURL);
|
setSkeletonModelURL(bodyModelURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString newDisplayName = "";
|
||||||
if (json.contains(JSON_AVATAR_DISPLAY_NAME)) {
|
if (json.contains(JSON_AVATAR_DISPLAY_NAME)) {
|
||||||
auto newDisplayName = json[JSON_AVATAR_DISPLAY_NAME].toString();
|
newDisplayName = json[JSON_AVATAR_DISPLAY_NAME].toString();
|
||||||
if (newDisplayName != getDisplayName()) {
|
}
|
||||||
setDisplayName(newDisplayName);
|
if (newDisplayName != getDisplayName()) {
|
||||||
}
|
setDisplayName(newDisplayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto currentBasis = getRecordingBasis();
|
auto currentBasis = getRecordingBasis();
|
||||||
|
|
Loading…
Reference in a new issue