mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
fix crash when building shape before model loaded
This commit is contained in:
parent
3c4f9f8016
commit
e4828b03b1
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ bool RenderableModelEntityItem::isReadyToComputeShape() {
|
|||
|
||||
// the model is still being downloaded.
|
||||
return false;
|
||||
} else if (type == SHAPE_TYPE_STATIC_MESH) {
|
||||
} else if (type >= SHAPE_TYPE_SIMPLE_HULL && type <= SHAPE_TYPE_STATIC_MESH) {
|
||||
return (_model && _model->isLoaded());
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue