mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +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);
|
||||
}
|
||||
}
|
||||
|
||||
QString newDisplayName = "";
|
||||
if (json.contains(JSON_AVATAR_DISPLAY_NAME)) {
|
||||
auto newDisplayName = json[JSON_AVATAR_DISPLAY_NAME].toString();
|
||||
if (newDisplayName != getDisplayName()) {
|
||||
setDisplayName(newDisplayName);
|
||||
}
|
||||
newDisplayName = json[JSON_AVATAR_DISPLAY_NAME].toString();
|
||||
}
|
||||
if (newDisplayName != getDisplayName()) {
|
||||
setDisplayName(newDisplayName);
|
||||
}
|
||||
|
||||
auto currentBasis = getRecordingBasis();
|
||||
|
|
Loading…
Reference in a new issue