fix the childrenCollapsed assignment

This commit is contained in:
Stephen Birarda 2013-03-29 11:11:05 -07:00
parent 271c41ce16
commit c6b38f0f39

View file

@ -394,8 +394,7 @@ void VoxelTree::reaverageVoxelColors(VoxelNode *startNode) {
}
if (hasChildren) {
bool childrenCollapsed = false;
startNode->collapseIdenticalLeaves();
bool childrenCollapsed = startNode->collapseIdenticalLeaves();
if (!childrenCollapsed) {
startNode->setColorFromAverageOfChildren();