cr cleanup and optimization of isLeaf()

This commit is contained in:
ZappoMan 2013-04-30 10:23:35 -07:00
parent bf3b014743
commit 3673ee36ad

View file

@ -183,13 +183,12 @@ void VoxelNode::setRandomColor(int minimumBrightness) {
}
bool VoxelNode::isLeaf() const {
int childCount = 0;
for (int i = 0; i < 8; i++) {
if (NULL != children[i]) {
childCount++;
if (children[i]) {
return false;
}
}
return (0 == childCount);
return true;
}
void VoxelNode::printDebugDetails(const char* label) const {