only broadcast replicated nodes to downstream

This commit is contained in:
Stephen Birarda 2017-06-13 18:11:50 -07:00
parent 29842c67cc
commit f6f3087580

View file

@ -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();