mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
remove isScheduledForDelete from OctreeQueryNode
This commit is contained in:
parent
450a9c03a7
commit
b3f60a068d
3 changed files with 0 additions and 11 deletions
|
@ -36,7 +36,6 @@ OctreeQueryNode::OctreeQueryNode() :
|
|||
_lodChanged(false),
|
||||
_lodInitialized(false),
|
||||
_sequenceNumber(0),
|
||||
_scheduleForDelete(false),
|
||||
_lastRootTimestamp(0)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -86,9 +86,6 @@ public:
|
|||
|
||||
void dumpOutOfView();
|
||||
|
||||
bool isScheduledForDelete() const { return _scheduleForDelete; }
|
||||
void scheduleForDelete() { _scheduleForDelete = true; }
|
||||
|
||||
quint64 getLastRootTimestamp() const { return _lastRootTimestamp; }
|
||||
void setLastRootTimestamp(quint64 timestamp) { _lastRootTimestamp = timestamp; }
|
||||
unsigned int getlastOctreePacketLength() const { return _lastOctreePacketLength; }
|
||||
|
@ -129,9 +126,6 @@ private:
|
|||
bool _lodInitialized;
|
||||
|
||||
OCTREE_PACKET_SEQUENCE _sequenceNumber;
|
||||
|
||||
bool _scheduleForDelete;
|
||||
|
||||
quint64 _lastRootTimestamp;
|
||||
};
|
||||
|
||||
|
|
|
@ -69,10 +69,6 @@ bool OctreeSendThread::process() {
|
|||
bool viewFrustumChanged = nodeData->updateCurrentViewFrustum();
|
||||
packetDistributor(node, nodeData, viewFrustumChanged);
|
||||
}
|
||||
if (nodeData->isScheduledForDelete()) {
|
||||
nodeData->deleteLater();
|
||||
node->setLinkedData(NULL);
|
||||
}
|
||||
} else {
|
||||
_nodeMissingCount++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue