mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
fix possible deadlocks
This commit is contained in:
parent
915a0d52d4
commit
5e21701a5b
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ Model* RenderableModelEntityItem::getModel(EntityTreeRenderer* renderer) {
|
|||
}
|
||||
assert(_myRenderer == renderer); // you should only ever render on one renderer
|
||||
|
||||
if (QThread::currentThread() != _myRenderer->thread()) {
|
||||
return _model;
|
||||
}
|
||||
|
||||
_needsModelReload = false; // this is the reload
|
||||
|
||||
// if we have a URL, then we will want to end up returning a model...
|
||||
|
|
Loading…
Reference in a new issue