mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
CR feedback
This commit is contained in:
parent
cb96b34f9a
commit
47c4ff887e
1 changed files with 4 additions and 6 deletions
|
@ -424,12 +424,10 @@ void VoxelTree::reaverageVoxelColors(VoxelNode *startNode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasChildren) {
|
// collapseIdenticalLeaves() returns true if it collapses the leaves
|
||||||
bool childrenCollapsed = startNode->collapseIdenticalLeaves();
|
// in which case we don't need to set the average color
|
||||||
|
if (hasChildren && !startNode->collapseIdenticalLeaves()) {
|
||||||
if (!childrenCollapsed) {
|
startNode->setColorFromAverageOfChildren();
|
||||||
startNode->setColorFromAverageOfChildren();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue