mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-18 06:37:12 +02:00
Merge branch 'load-models-in-keyhole' of github.com:sethalves/hifi into tablet-ui
This commit is contained in:
commit
f0248275ec
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue