mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +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;
|
int numAvatarDataBytes = 0;
|
||||||
|
|
||||||
std::for_each(_begin, _end, [&](const SharedNodePointer& agentNode) {
|
std::for_each(_begin, _end, [&](const SharedNodePointer& agentNode) {
|
||||||
// collect agents that we have avatar data for
|
// collect agents that we have avatar data for that we are supposed to replicate
|
||||||
if (agentNode->getType() == NodeType::Agent && agentNode->getLinkedData()) {
|
if (agentNode->getType() == NodeType::Agent && agentNode->getLinkedData() && agentNode->isReplicated()) {
|
||||||
const AvatarMixerClientData* agentNodeData = reinterpret_cast<const AvatarMixerClientData*>(agentNode->getLinkedData());
|
const AvatarMixerClientData* agentNodeData = reinterpret_cast<const AvatarMixerClientData*>(agentNode->getLinkedData());
|
||||||
|
|
||||||
AvatarSharedPointer otherAvatar = agentNodeData->getAvatarSharedPointer();
|
AvatarSharedPointer otherAvatar = agentNodeData->getAvatarSharedPointer();
|
||||||
|
|
Loading…
Reference in a new issue