mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
fix the childrenCollapsed assignment
This commit is contained in:
parent
271c41ce16
commit
c6b38f0f39
1 changed files with 1 additions and 2 deletions
|
@ -394,8 +394,7 @@ void VoxelTree::reaverageVoxelColors(VoxelNode *startNode) {
|
|||
}
|
||||
|
||||
if (hasChildren) {
|
||||
bool childrenCollapsed = false;
|
||||
startNode->collapseIdenticalLeaves();
|
||||
bool childrenCollapsed = startNode->collapseIdenticalLeaves();
|
||||
|
||||
if (!childrenCollapsed) {
|
||||
startNode->setColorFromAverageOfChildren();
|
||||
|
|
Loading…
Reference in a new issue