From 34982227e49e16fd8e7457170f9dbe1e4c59e7a9 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Sat, 4 May 2013 21:58:16 -0700 Subject: [PATCH] removed color reaveraging from readNodeData() because server will already send averages --- libraries/voxels/src/VoxelTree.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libraries/voxels/src/VoxelTree.cpp b/libraries/voxels/src/VoxelTree.cpp index 26803272d7..fee0c698bb 100644 --- a/libraries/voxels/src/VoxelTree.cpp +++ b/libraries/voxels/src/VoxelTree.cpp @@ -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);