mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
raise max mesh count for static collision entities from 500 to 1000
This commit is contained in:
parent
90db9af2f9
commit
c21b8b4eac
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& shapeInfo) {
|
||||||
auto& meshes = _model->getGeometry()->getMeshes();
|
auto& meshes = _model->getGeometry()->getMeshes();
|
||||||
int32_t numMeshes = (int32_t)(meshes.size());
|
int32_t numMeshes = (int32_t)(meshes.size());
|
||||||
|
|
||||||
const int MAX_ALLOWED_MESH_COUNT = 500;
|
const int MAX_ALLOWED_MESH_COUNT = 1000;
|
||||||
if (numMeshes > MAX_ALLOWED_MESH_COUNT) {
|
if (numMeshes > MAX_ALLOWED_MESH_COUNT) {
|
||||||
// too many will cause the deadlock timer to throw...
|
// too many will cause the deadlock timer to throw...
|
||||||
shapeInfo.setParams(SHAPE_TYPE_BOX, 0.5f * dimensions);
|
shapeInfo.setParams(SHAPE_TYPE_BOX, 0.5f * dimensions);
|
||||||
|
|
Loading…
Reference in a new issue