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
7373 _writeRenderFullVBO = true;
7474 _readRenderFullVBO = true;
7575 _tree = new VoxelTree();
76+
7677 _tree->rootNode->setVoxelSystem(this);
7778 pthread_mutex_init(&_bufferWriteLock, NULL);
7879 pthread_mutex_init(&_treeLock, NULL);
@@ -133,7 +134,7 @@ void VoxelSystem::voxelUpdated(VoxelNode* node) { · 54 unmodified lines
133134 }
134135
135136 if (node->getVoxelSystem() == this) {
136− bool shouldRender = false; // assume we don't need to render it
137+ bool shouldRender = false; // assume we don't need to render it
137138 // if it's colored, we might need to render it!
138139 shouldRender = node->calculateShouldRender(_viewFrustum);
139140

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