fix crash when building shape before model loaded

This commit is contained in:
Andrew Meadows 2016-07-07 13:32:30 -07:00
parent 3c4f9f8016
commit e4828b03b1

View file

@ -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;