mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 07:56:55 +02:00
seek back after track of octree packet
This commit is contained in:
parent
60ae02e4e9
commit
05dd49a4c5
2 changed files with 4 additions and 1 deletions
|
@ -89,6 +89,9 @@ void OctreePacketProcessor::processPacket(QSharedPointer<NLPacket> packet, Share
|
|||
}
|
||||
|
||||
app->trackIncomingOctreePacket(*packet, sendingNode, wasStatsPacket);
|
||||
|
||||
// seek back to beginning of packet after tracking
|
||||
packet->seek(0);
|
||||
|
||||
switch(packetType) {
|
||||
case PacketType::EntityErase: {
|
||||
|
|
|
@ -67,7 +67,7 @@ void OctreeRenderer::processDatagram(NLPacket& packet, SharedNodePointer sourceN
|
|||
PerformanceWarning warn(showTimingDetails, "OctreeRenderer::processDatagram expected PacketType", showTimingDetails);
|
||||
// if we are getting inbound packets, then our tree is also viewing, and we should remember that fact.
|
||||
_tree->setIsViewing(true);
|
||||
|
||||
|
||||
OCTREE_PACKET_FLAGS flags;
|
||||
packet.readPrimitive(&flags);
|
||||
|
||||
|
|
Loading…
Reference in a new issue