mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:08:06 +02:00
only broadcast replicated nodes to downstream
This commit is contained in:
parent
29842c67cc
commit
f6f3087580
1 changed files with 2 additions and 2 deletions
|
@ -451,8 +451,8 @@ void AvatarMixerSlave::broadcastAvatarDataToDownstreamMixer(const SharedNodePoin
|
|||
int numAvatarDataBytes = 0;
|
||||
|
||||
std::for_each(_begin, _end, [&](const SharedNodePointer& agentNode) {
|
||||
// collect agents that we have avatar data for
|
||||
if (agentNode->getType() == NodeType::Agent && agentNode->getLinkedData()) {
|
||||
// collect agents that we have avatar data for that we are supposed to replicate
|
||||
if (agentNode->getType() == NodeType::Agent && agentNode->getLinkedData() && agentNode->isReplicated()) {
|
||||
const AvatarMixerClientData* agentNodeData = reinterpret_cast<const AvatarMixerClientData*>(agentNode->getLinkedData());
|
||||
|
||||
AvatarSharedPointer otherAvatar = agentNodeData->getAvatarSharedPointer();
|
||||
|
|
Loading…
Reference in a new issue