History

fix reset of VoxelSystem on eraseAllVoxels()

ZappoMan committed 13 years ago

Commit ca7225e1 parent 00141863 files · +8 −2Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+2−1
@@ -73,6 +73,7 @@ VoxelSystem::VoxelSystem(float treeScale, int maxVoxels) · 72 unmodified lines
73 _writeRenderFullVBO = true;73 _writeRenderFullVBO = true;
74 _readRenderFullVBO = true;74 _readRenderFullVBO = true;
75 _tree = new VoxelTree();75 _tree = new VoxelTree();
76
76 _tree->rootNode->setVoxelSystem(this);77 _tree->rootNode->setVoxelSystem(this);
77 pthread_mutex_init(&_bufferWriteLock, NULL);78 pthread_mutex_init(&_bufferWriteLock, NULL);
78 pthread_mutex_init(&_treeLock, NULL);79 pthread_mutex_init(&_treeLock, NULL);
@@ -133,7 +134,7 @@ void VoxelSystem::voxelUpdated(VoxelNode* node) { · 54 unmodified lines
133 }134 }
134 135
135 if (node->getVoxelSystem() == this) {136 if (node->getVoxelSystem() == this) {
136 bool shouldRender = false; // assume we don't need to render it137 bool shouldRender = false; // assume we don't need to render it
137 // if it's colored, we might need to render it!138 // if it's colored, we might need to render it!
138 shouldRender = node->calculateShouldRender(_viewFrustum);139 shouldRender = node->calculateShouldRender(_viewFrustum);
139 140

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t