Merge pull request #4082 from AndrewMeadows/bispinor

remove lock at EntityTreeRenderer::loadEntityScript
This commit is contained in:
Brad Hefta-Gaub 2015-01-11 11:11:29 -08:00
commit d1eddad00b

View file

@ -98,9 +98,7 @@ void EntityTreeRenderer::init() {
}
QScriptValue EntityTreeRenderer::loadEntityScript(const EntityItemID& entityItemID) {
_tree->lockForRead();
EntityItem* entity = static_cast<EntityTree*>(_tree)->findEntityByEntityItemID(entityItemID);
_tree->unlock();
return loadEntityScript(entity);
}