mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
commit
e434defc7f
2 changed files with 7 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;
|
||||
|
|
|
@ -101,6 +101,7 @@ WebTablet = function (url, width, dpi, hand, clientOnly) {
|
|||
name: "homeButton",
|
||||
type: "Model",
|
||||
modelURL: HOME_BUTTON_URL,
|
||||
dimensions: { x: 0.04, y: 0.04, z: 0.02 },
|
||||
collisionless: true,
|
||||
localPosition: {x: 0, y: HOME_BUTTON_Y_OFFSET, z: -0.01},
|
||||
parentID: this.tabletEntityID,
|
||||
|
|
Loading…
Reference in a new issue