mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-24 09:36:53 +02:00
Changed lockForWrite() to lockForRead()
This commit is contained in:
parent
a2acdc01ab
commit
5941ad0dd1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue