mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
add last know root timestamp property to query node
This commit is contained in:
parent
beffb6deae
commit
329d3b37e0
2 changed files with 8 additions and 2 deletions
|
@ -36,12 +36,12 @@ OctreeQueryNode::OctreeQueryNode() :
|
|||
_lodChanged(false),
|
||||
_lodInitialized(false),
|
||||
_sequenceNumber(0),
|
||||
_scheduleForDelete(false)
|
||||
_scheduleForDelete(false),
|
||||
_lastRootTimestamp(0)
|
||||
{
|
||||
}
|
||||
|
||||
OctreeQueryNode::~OctreeQueryNode() {
|
||||
qDebug() << "OctreeQueryNode::~OctreeQueryNode()";
|
||||
if (_octreeSendThread) {
|
||||
_octreeSendThread->terminate();
|
||||
delete _octreeSendThread;
|
||||
|
|
|
@ -89,6 +89,10 @@ public:
|
|||
bool isScheduledForDelete() const { return _scheduleForDelete; }
|
||||
void scheduleForDelete() { _scheduleForDelete = true; }
|
||||
|
||||
quint64 getLastRootTimestamp() const { return _lastRootTimestamp; }
|
||||
void setLastRootTimestamp(quint64 timestamp) { _lastRootTimestamp = timestamp; }
|
||||
|
||||
|
||||
private:
|
||||
OctreeQueryNode(const OctreeQueryNode &);
|
||||
OctreeQueryNode& operator= (const OctreeQueryNode&);
|
||||
|
@ -125,6 +129,8 @@ private:
|
|||
OCTREE_PACKET_SEQUENCE _sequenceNumber;
|
||||
|
||||
bool _scheduleForDelete;
|
||||
|
||||
quint64 _lastRootTimestamp;
|
||||
};
|
||||
|
||||
#endif /* defined(__hifi__OctreeQueryNode__) */
|
||||
|
|
Loading…
Reference in a new issue