mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:17:14 +02:00
fix one call to calculateShouldRender()
This commit is contained in:
parent
96870f5d66
commit
e8f5c86c73
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ void VoxelSystem::voxelUpdated(VoxelNode* node) {
|
||||||
VoxelNode* childNode = node->getChildAtIndex(i);
|
VoxelNode* childNode = node->getChildAtIndex(i);
|
||||||
if (childNode) {
|
if (childNode) {
|
||||||
bool wasShouldRender = childNode->getShouldRender();
|
bool wasShouldRender = childNode->getShouldRender();
|
||||||
bool isShouldRender = childNode->calculateShouldRender(_viewFrustum, voxelSizeScale);
|
bool isShouldRender = childNode->calculateShouldRender(_viewFrustum, voxelSizeScale, boundaryLevelAdjust);
|
||||||
if (wasShouldRender && !isShouldRender) {
|
if (wasShouldRender && !isShouldRender) {
|
||||||
childrenGotHiddenCount++;
|
childrenGotHiddenCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue