mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +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) {
|
if (hasChildren) {
|
||||||
bool childrenCollapsed = false;
|
bool childrenCollapsed = startNode->collapseIdenticalLeaves();
|
||||||
startNode->collapseIdenticalLeaves();
|
|
||||||
|
|
||||||
if (!childrenCollapsed) {
|
if (!childrenCollapsed) {
|
||||||
startNode->setColorFromAverageOfChildren();
|
startNode->setColorFromAverageOfChildren();
|
||||||
|
|
Loading…
Reference in a new issue