remove lock at EntityTreeRenderer::loadEntityScript

This commit is contained in:
Andrew Meadows 2015-01-11 10:44:36 -08:00
parent c80414dd96
commit 5309fb6a43

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);
}