mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-11 10:25:28 +02:00
repair to packing of query data from headless viewer
This commit is contained in:
parent
710e369b70
commit
f58804a30e
1 changed files with 4 additions and 1 deletions
|
@ -216,7 +216,10 @@ void OctreeHeadlessViewer::queryOctree() {
|
|||
|
||||
// setup the query packet
|
||||
auto queryPacket = NLPacket::create(packetType);
|
||||
_octreeQuery.getBroadcastData(reinterpret_cast<unsigned char*>(queryPacket->getPayload()));
|
||||
|
||||
// read the data to our packet and set the payload size to fit the query
|
||||
int querySize = _octreeQuery.getBroadcastData(reinterpret_cast<unsigned char*>(queryPacket->getPayload()));
|
||||
queryPacket->setPayloadSize(querySize);
|
||||
|
||||
// ask the NodeList to send it
|
||||
nodeList->sendPacket(std::move(queryPacket), *node);
|
||||
|
|
Loading…
Reference in a new issue