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) { if (hasChildren) {
bool childrenCollapsed = false; bool childrenCollapsed = startNode->collapseIdenticalLeaves();
startNode->collapseIdenticalLeaves();
if (!childrenCollapsed) { if (!childrenCollapsed) {
startNode->setColorFromAverageOfChildren(); startNode->setColorFromAverageOfChildren();