mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
load entity models that don't yet need to be rendered but are close enough to keep physics from being enabled.
This commit is contained in:
parent
98699885f4
commit
050a7e87d2
1 changed files with 6 additions and 0 deletions
|
@ -646,6 +646,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