mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 12:04:38 +02:00
update OctreeStatsDialog to new tbb node iteration
This commit is contained in:
parent
d82e2fb8f4
commit
ce02d79d41
1 changed files with 3 additions and 5 deletions
|
@ -248,10 +248,8 @@ void OctreeStatsDialog::showOctreeServersOfType(int& serverCount, NodeType_t ser
|
||||||
QLocale locale(QLocale::English);
|
QLocale locale(QLocale::English);
|
||||||
|
|
||||||
NodeList* nodeList = NodeList::getInstance();
|
NodeList* nodeList = NodeList::getInstance();
|
||||||
NodeHashSnapshot snapshotHash = nodeList->getNodeHash().snapshot_table();
|
nodeList->eachNode([&](const SharedNodePointer& node){
|
||||||
|
|
||||||
for (auto it = snapshotHash.begin(); it != snapshotHash.end(); it++) {
|
|
||||||
SharedNodePointer node = it->second;
|
|
||||||
// only send to the NodeTypes that are NodeType_t_VOXEL_SERVER
|
// only send to the NodeTypes that are NodeType_t_VOXEL_SERVER
|
||||||
if (node->getType() == serverType) {
|
if (node->getType() == serverType) {
|
||||||
serverCount++;
|
serverCount++;
|
||||||
|
@ -422,7 +420,7 @@ void OctreeStatsDialog::showOctreeServersOfType(int& serverCount, NodeType_t ser
|
||||||
serverDetails << linkDetails.str();
|
serverDetails << linkDetails.str();
|
||||||
_labels[_voxelServerLables[serverCount - 1]]->setText(serverDetails.str().c_str());
|
_labels[_voxelServerLables[serverCount - 1]]->setText(serverDetails.str().c_str());
|
||||||
} // is VOXEL_SERVER
|
} // is VOXEL_SERVER
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void OctreeStatsDialog::reject() {
|
void OctreeStatsDialog::reject() {
|
||||||
|
|
Loading…
Reference in a new issue