mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 15:13:09 +02:00
removed color reaveraging from readNodeData() because server will already send averages
This commit is contained in:
parent
0a488e3585
commit
34982227e4
1 changed files with 0 additions and 10 deletions
|
@ -157,16 +157,6 @@ int VoxelTree::readNodeData(VoxelNode* destinationNode,
|
|||
bytesRead += 3;
|
||||
}
|
||||
}
|
||||
// average node's color based on color of children
|
||||
bool nodeWasDirty = destinationNode->isDirty();
|
||||
destinationNode->setColorFromAverageOfChildren();
|
||||
bool nodeIsDirty = destinationNode->isDirty();
|
||||
if (nodeIsDirty) {
|
||||
_isDirty = true;
|
||||
}
|
||||
if (!nodeWasDirty && nodeIsDirty) {
|
||||
_nodesChangedFromBitstream++;
|
||||
}
|
||||
|
||||
// give this destination node the child mask from the packet
|
||||
unsigned char childMask = *(nodeData + bytesRead);
|
||||
|
|
Loading…
Reference in a new issue