mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:37:29 +02:00
CR feedback
This commit is contained in:
parent
cb96b34f9a
commit
47c4ff887e
1 changed files with 4 additions and 6 deletions
|
@ -424,15 +424,13 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void VoxelTree::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) {
|
void VoxelTree::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) {
|
||||||
int vCount = 0;
|
int vCount = 0;
|
||||||
|
|
Loading…
Reference in a new issue