From 271c41ce164af6ea2c27cd4d5670414eef729bbe Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 29 Mar 2013 10:59:10 -0700 Subject: [PATCH] collapse the identical leaves again --- shared/src/VoxelTree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/src/VoxelTree.cpp b/shared/src/VoxelTree.cpp index 136769d93a..19312c77ef 100644 --- a/shared/src/VoxelTree.cpp +++ b/shared/src/VoxelTree.cpp @@ -394,7 +394,9 @@ void VoxelTree::reaverageVoxelColors(VoxelNode *startNode) { } if (hasChildren) { - bool childrenCollapsed = false;//startNode->collapseIdenticalLeaves(); + bool childrenCollapsed = false; + startNode->collapseIdenticalLeaves(); + if (!childrenCollapsed) { startNode->setColorFromAverageOfChildren(); }