Merge pull request #14226 from Atlante45/fix/octree-scene-stats

Only track stats for compatible packets
This commit is contained in:
John Conklin II 2018-10-22 11:45:16 -07:00 committed by GitHub
commit bd480bab80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,9 @@ void OctreePacketProcessor::processPacket(QSharedPointer<ReceivedMessage> messag
return; // bail since piggyback version doesn't match
}
qApp->trackIncomingOctreePacket(*message, sendingNode, wasStatsPacket);
if (packetType != PacketType::EntityQueryInitialResultsComplete) {
qApp->trackIncomingOctreePacket(*message, sendingNode, wasStatsPacket);
}
// seek back to beginning of packet after tracking
message->seek(0);