Showing the changes to interface/src/ParticleTreeRenderer.cpp (1 of 4 files). Show all
Unified · Split
| @@ -33,10 +33,7 @@ void ParticleTreeRenderer::init() { · 32 unmodified lines | |||
| 33 | void ParticleTreeRenderer::update() { | 33 | void ParticleTreeRenderer::update() { |
| 34 | if (_tree) { | 34 | if (_tree) { |
| 35 | ParticleTree* tree = static_cast<ParticleTree*>(_tree); | 35 | ParticleTree* tree = static_cast<ParticleTree*>(_tree); |
| 36 | if (tree->tryLockForWrite()) { | 36 | tree->update(); |
| 37 | tree->update(); | ||
| 38 | tree->unlock(); | ||
| 39 | } | ||
| 40 | } | 37 | } |
| 41 | } | 38 | } |
| 42 | 39 | ||