Merge branch 'load-models-in-keyhole' of github.com:sethalves/hifi into tablet-ui

This commit is contained in:
Seth Alves 2017-01-16 06:47:15 -08:00
commit f0248275ec

View file

@ -647,6 +647,12 @@ bool RenderableModelEntityItem::isReadyToComputeShape() {
// the model is still being downloaded.
return false;
} else if (type >= SHAPE_TYPE_SIMPLE_HULL && type <= SHAPE_TYPE_STATIC_MESH) {
if (!_model) {
EntityTreePointer tree = getTree();
if (tree) {
QMetaObject::invokeMethod(tree.get(), "callLoader", Qt::QueuedConnection, Q_ARG(EntityItemID, getID()));
}
}
return (_model && _model->isLoaded());
}
return true;