Fix display name not getting cleared

This commit is contained in:
David Rowe 2017-05-17 08:17:55 +12:00
parent 733b0feabd
commit 7897bf8aa8

View file

@ -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();