mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:08:54 +02:00
don't attempt to send the avatar billboard if too large
This commit is contained in:
parent
2ac6304752
commit
f919d2985b
1 changed files with 7 additions and 5 deletions
|
@ -1115,11 +1115,13 @@ void AvatarData::sendBillboardPacket() {
|
||||||
if (!_billboard.isEmpty()) {
|
if (!_billboard.isEmpty()) {
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
|
||||||
|
if (_billboard.size() <= NLPacket::maxPayloadSize(PacketType::AvatarBillboard)) {
|
||||||
auto billboardPacket = NLPacket::create(PacketType::AvatarBillboard, _billboard.size());
|
auto billboardPacket = NLPacket::create(PacketType::AvatarBillboard, _billboard.size());
|
||||||
billboardPacket->write(_billboard);
|
billboardPacket->write(_billboard);
|
||||||
|
|
||||||
nodeList->broadcastToNodes(std::move(billboardPacket), NodeSet() << NodeType::AvatarMixer);
|
nodeList->broadcastToNodes(std::move(billboardPacket), NodeSet() << NodeType::AvatarMixer);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarData::updateJointMappings() {
|
void AvatarData::updateJointMappings() {
|
||||||
|
|
Loading…
Reference in a new issue