mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Removed nested lock
This commit is contained in:
parent
0b0cbdf340
commit
e41d3f407b
1 changed files with 0 additions and 2 deletions
|
@ -160,10 +160,8 @@ ModelItemID ModelsScriptingInterface::findClosestModel(const glm::vec3& center,
|
|||
QVector<ModelItemID> ModelsScriptingInterface::findModels(const glm::vec3& center, float radius) const {
|
||||
QVector<ModelItemID> result;
|
||||
if (_modelTree) {
|
||||
_modelTree->lockForRead();
|
||||
QVector<const ModelItem*> models;
|
||||
_modelTree->findModels(center/(float)TREE_SCALE, radius/(float)TREE_SCALE, models);
|
||||
_modelTree->unlock();
|
||||
|
||||
foreach (const ModelItem* model, models) {
|
||||
ModelItemID thisModelItemID(model->getID(), UNKNOWN_MODEL_TOKEN, true);
|
||||
|
|
Loading…
Reference in a new issue