mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 17:44:15 +02:00
don't process packets for ignored avatars
This commit is contained in:
parent
609900f246
commit
39c7805ca2
1 changed files with 11 additions and 4 deletions
|
@ -107,7 +107,10 @@ void AvatarHashMap::processAvatarDataPacket(QSharedPointer<ReceivedMessage> mess
|
||||||
|
|
||||||
QByteArray byteArray = message->readWithoutCopy(message->getBytesLeftToRead());
|
QByteArray byteArray = message->readWithoutCopy(message->getBytesLeftToRead());
|
||||||
|
|
||||||
if (sessionUUID != _lastOwnerSessionUUID) {
|
// make sure this isn't our own avatar data or for a previously ignored node
|
||||||
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
|
||||||
|
if (sessionUUID != _lastOwnerSessionUUID && !nodeList->isIgnoringNode(sessionUUID)) {
|
||||||
auto avatar = newOrExistingAvatar(sessionUUID, sendingNode);
|
auto avatar = newOrExistingAvatar(sessionUUID, sendingNode);
|
||||||
|
|
||||||
// have the matching (or new) avatar parse the data from the packet
|
// have the matching (or new) avatar parse the data from the packet
|
||||||
|
@ -126,9 +129,13 @@ void AvatarHashMap::processAvatarIdentityPacket(QSharedPointer<ReceivedMessage>
|
||||||
AvatarData::Identity identity;
|
AvatarData::Identity identity;
|
||||||
AvatarData::parseAvatarIdentityPacket(message->getMessage(), identity);
|
AvatarData::parseAvatarIdentityPacket(message->getMessage(), identity);
|
||||||
|
|
||||||
|
// make sure this isn't for an ignored avatar
|
||||||
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
if (!nodeList->isIgnoringNode(identity.uuid)) {
|
||||||
// mesh URL for a UUID, find avatar in our list
|
// mesh URL for a UUID, find avatar in our list
|
||||||
auto avatar = newOrExistingAvatar(identity.uuid, sendingNode);
|
auto avatar = newOrExistingAvatar(identity.uuid, sendingNode);
|
||||||
avatar->processAvatarIdentity(identity);
|
avatar->processAvatarIdentity(identity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarHashMap::processKillAvatar(QSharedPointer<ReceivedMessage> message, SharedNodePointer sendingNode) {
|
void AvatarHashMap::processKillAvatar(QSharedPointer<ReceivedMessage> message, SharedNodePointer sendingNode) {
|
||||||
|
|
Loading…
Reference in a new issue