mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 09:33:49 +02:00
Merge pull request #10034 from davidkelly/dk/avatarEntityIssue
bad serialization of Avatar Entity parentID
This commit is contained in:
commit
348674a267
1 changed files with 4 additions and 2 deletions
|
@ -60,8 +60,10 @@ void EntityEditPacketSender::queueEditAvatarEntityMessage(PacketType type,
|
|||
|
||||
// the ID of the parent/avatar changes from session to session. use a special UUID to indicate the avatar
|
||||
QJsonObject jsonObject = jsonProperties.object();
|
||||
if (QUuid(jsonObject["parentID"].toString()) == _myAvatar->getID()) {
|
||||
jsonObject["parentID"] = AVATAR_SELF_ID.toString();
|
||||
if (jsonObject.contains("parentID")) {
|
||||
if (QUuid(jsonObject["parentID"].toString()) == _myAvatar->getID()) {
|
||||
jsonObject["parentID"] = AVATAR_SELF_ID.toString();
|
||||
}
|
||||
}
|
||||
jsonProperties = QJsonDocument(jsonObject);
|
||||
|
||||
|
|
Loading…
Reference in a new issue