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 | 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 | 433 | bool VoxelSystem::randomColorOperation(VoxelNode* node, void* extraData) { |
| 427 | 434 | _nodeCount++; |
| 428 | 435 | if (node->isColored()) { |
| 429 | − nodeColor newColor = { randomColorValue(150), randomColorValue(150), randomColorValue(150), 1 }; | |
| 436 | + nodeColor newColor = { 255, randomColorValue(150), randomColorValue(150), 1 }; | |
| 430 | 437 | node->setColor(newColor); |
| 431 | 438 | } |
| 432 | 439 | return true; |
| @@ -442,7 +449,7 @@ void VoxelSystem::randomizeVoxelColors() { · 9 unmodified lines | ||
| 442 | 449 | bool VoxelSystem::falseColorizeRandomOperation(VoxelNode* node, void* extraData) { |
| 443 | 450 | _nodeCount++; |
| 444 | 451 | // always false colorize |
| 445 | − node->setFalseColor(randomColorValue(150), randomColorValue(150), randomColorValue(150)); | |
| 452 | + node->setFalseColor(255, randomColorValue(150), randomColorValue(150)); | |
| 446 | 453 | return true; // keep going! |
| 447 | 454 | } |
| 448 | 455 | |