seek back after track of octree packet

This commit is contained in:
Stephen Birarda 2015-07-16 13:02:20 -07:00
parent 60ae02e4e9
commit 05dd49a4c5
2 changed files with 4 additions and 1 deletions

View file

@ -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: {

View file

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