Changed lockForWrite() to lockForRead()

This commit is contained in:
Atlante45 2014-03-12 14:08:23 -07:00
parent a2acdc01ab
commit 5941ad0dd1

View file

@ -40,7 +40,7 @@ void LocalVoxelsOverlay::update(float deltatime) {
_voxelSystem->init();
}
_tree->lockForWrite();
_tree->lockForRead();
if (_visible && _voxelCount != _tree->getOctreeElementsCount()) {
_voxelCount = _tree->getOctreeElementsCount();
_voxelSystem->forceRedrawEntireTree();