mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
Fixing division by zero
This commit is contained in:
parent
837e333ab2
commit
95fd362857
@ -890,6 +890,8 @@ static void setupSpatialGridBatchesMt(
|
||||
|
||||
btVector3 gridExtent = bboxMax - bboxMin;
|
||||
|
||||
gridExtent.setMax({btScalar(1), btScalar(1), btScalar(1)});
|
||||
|
||||
btVector3 gridCellSize = consExtent;
|
||||
int gridDim[3];
|
||||
gridDim[0] = int(1.0 + gridExtent.x() / gridCellSize.x());
|
||||
|
Loading…
Reference in New Issue
Block a user