mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +02:00
OMG I think it's actually fully working
This commit is contained in:
parent
685bd95105
commit
0000b8fb21
1 changed files with 22 additions and 0 deletions
|
@ -365,6 +365,28 @@ void AvatarMixer::handleRequestsDomainListDataPacket(QSharedPointer<ReceivedMess
|
|||
message->readPrimitive(&isRequesting);
|
||||
nodeData->setRequestsDomainListData(isRequesting);
|
||||
qCDebug(avatars) << "node" << nodeData->getNodeID() << "requestsDomainListData" << isRequesting;
|
||||
|
||||
// If we just opened the PAL...
|
||||
if (isRequesting) {
|
||||
// For each node in the NodeList...
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
nodeList->eachMatchingNode(
|
||||
// Discover the valid nodes we're ignoring...
|
||||
[&](const SharedNodePointer& node)->bool {
|
||||
if (node->getUUID() != senderNode->getUUID() &&
|
||||
(nodeData->isRadiusIgnoring(node->getUUID()) ||
|
||||
senderNode->isIgnoringNodeWithID(node->getUUID()))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
// ...For those nodes, reset the lastBroadcastTime to 0
|
||||
// so that the AvatarMixer will send Identity data to us
|
||||
[&](const SharedNodePointer& node) {
|
||||
nodeData->setLastBroadcastTime(node->getUUID(), 0);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
auto end = usecTimestampNow();
|
||||
|
|
Loading…
Reference in a new issue