Showing the changes to interface/src/VoxelSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -423,10 +423,17 @@ void VoxelSystem::render() { · 422 unmodified lines | |||
| 423 | 423 | ||
| 424 | int VoxelSystem::_nodeCount = 0; | 424 | int VoxelSystem::_nodeCount = 0; |
| 425 | 425 | ||
| 426 | void VoxelSystem::killLocalVoxels() { | ||
| 427 | _tree->eraseAllVoxels(); | ||
| 428 | _voxelsInArrays = 0; // better way to do this?? | ||
| 429 | //setupNewVoxelsForDrawing(); | ||
| 430 | } | ||
| 431 | |||
| 432 | |||
| 426 | bool VoxelSystem::randomColorOperation(VoxelNode* node, void* extraData) { | 433 | bool 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 | |||
| 442 | bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) { | 449 | bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) { |
| 443 | _nodeCount++; | 450 | _nodeCount++; |
| 444 | // always false colorize | 451 | // 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 | ||