mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-09 02:47:18 +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.
|
// the model is still being downloaded.
|
||||||
return false;
|
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 (_model && _model->isLoaded());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue