mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 11:44:09 +02:00
add missing local ID, reset client processed trait versions
This commit is contained in:
parent
6c204b682d
commit
f0ba61ff05
3 changed files with 4 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
#include "AvatarMixerSlave.h"
|
#include "AvatarMixerSlave.h"
|
||||||
|
|
||||||
AvatarMixerClientData::AvatarMixerClientData(const QUuid& nodeID, Node::LocalID nodeLocalID) :
|
AvatarMixerClientData::AvatarMixerClientData(const QUuid& nodeID, Node::LocalID nodeLocalID) :
|
||||||
NodeData(nodeID)
|
NodeData(nodeID, nodeLocalID)
|
||||||
{
|
{
|
||||||
// in case somebody calls getSessionUUID on the AvatarData instance, make sure it has the right ID
|
// in case somebody calls getSessionUUID on the AvatarData instance, make sure it has the right ID
|
||||||
_avatar->setID(nodeID);
|
_avatar->setID(nodeID);
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <QScriptEngine>
|
#include <QScriptEngine>
|
||||||
#include <QtCore/QJsonDocument>
|
|
||||||
|
|
||||||
#include "AvatarLogging.h"
|
#include "AvatarLogging.h"
|
||||||
|
|
||||||
|
|
|
@ -279,6 +279,9 @@ void AvatarHashMap::removeAvatar(const QUuid& sessionUUID, KillAvatarReason remo
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarHashMap::handleRemovedAvatar(const AvatarSharedPointer& removedAvatar, KillAvatarReason removalReason) {
|
void AvatarHashMap::handleRemovedAvatar(const AvatarSharedPointer& removedAvatar, KillAvatarReason removalReason) {
|
||||||
|
// remove any information about processed traits for this avatar
|
||||||
|
_processedTraitVersions.erase(removedAvatar->getID());
|
||||||
|
|
||||||
qCDebug(avatars) << "Removed avatar with UUID" << uuidStringWithoutCurlyBraces(removedAvatar->getSessionUUID())
|
qCDebug(avatars) << "Removed avatar with UUID" << uuidStringWithoutCurlyBraces(removedAvatar->getSessionUUID())
|
||||||
<< "from AvatarHashMap" << removalReason;
|
<< "from AvatarHashMap" << removalReason;
|
||||||
emit avatarRemovedEvent(removedAvatar->getSessionUUID());
|
emit avatarRemovedEvent(removedAvatar->getSessionUUID());
|
||||||
|
|
Loading…
Reference in a new issue