History

debugging voxel sending behavior

ZappoMan committed 13 years ago

Commit 275772b1 parent 174c3ee3 files · +28 −2Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 3 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+9−2
@@ -423,10 +423,17 @@ void VoxelSystem::render() { · 422 unmodified lines
423 423
424int VoxelSystem::_nodeCount = 0;424int VoxelSystem::_nodeCount = 0;
425 425
426void VoxelSystem::killLocalVoxels() {
427 _tree->eraseAllVoxels();
428 _voxelsInArrays = 0; // better way to do this??
429 //setupNewVoxelsForDrawing();
430}
431
432
426bool VoxelSystem::randomColorOperation(VoxelNode* node, void* extraData) {433bool VoxelSystem::randomColorOperation(VoxelNode* node, void* extraData) {
427 _nodeCount++;434 _nodeCount++;
428 if (node->isColored()) {435 if (node->isColored()) {
429 nodeColor newColor = { randomColorValue(150), randomColorValue(150), randomColorValue(150), 1 };436 nodeColor newColor = { 255, randomColorValue(150), randomColorValue(150), 1 };
430 node->setColor(newColor);437 node->setColor(newColor);
431 }438 }
432 return true;439 return true;
@@ -442,7 +449,7 @@ void VoxelSystem::randomizeVoxelColors() { · 9 unmodified lines
442bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) {449bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) {
443 _nodeCount++;450 _nodeCount++;
444 // always false colorize451 // always false colorize
445 node->setFalseColor(randomColorValue(150), randomColorValue(150), randomColorValue(150));452 node->setFalseColor(255, randomColorValue(150), randomColorValue(150));
446 return true; // keep going!453 return true; // keep going!
447}454}
448 455