History

fix one call to calculateShouldRender()

ZappoMan committed 13 years ago

Commit e8f5c861 parent 96870f51 file · +1 −1Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -158,7 +158,7 @@ void VoxelSystem::voxelUpdated(VoxelNode* node) { · 157 unmodified lines
158 VoxelNode* childNode = node->getChildAtIndex(i);158 VoxelNode* childNode = node->getChildAtIndex(i);
159 if (childNode) {159 if (childNode) {
160 bool wasShouldRender = childNode->getShouldRender();160 bool wasShouldRender = childNode->getShouldRender();
161 bool isShouldRender = childNode->calculateShouldRender(_viewFrustum, voxelSizeScale);161 bool isShouldRender = childNode->calculateShouldRender(_viewFrustum, voxelSizeScale, boundaryLevelAdjust);
162 if (wasShouldRender && !isShouldRender) {162 if (wasShouldRender && !isShouldRender) {
163 childrenGotHiddenCount++;163 childrenGotHiddenCount++;
164 }164 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t