Skip to content

Commit

Permalink
Merge pull request #4284 from vitalybuka/master
Browse files Browse the repository at this point in the history
Initialize vertexSource
  • Loading branch information
erwincoumans committed Sep 25, 2022
2 parents 327336d + 6626ed1 commit 2c204c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LinearMath/btConvexHull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ HullError HullLibrary::CreateConvexHull(const HullDesc &desc, // describes the
if (vcount < 8) vcount = 8;

btAlignedObjectArray<btVector3> vertexSource;
vertexSource.resize(static_cast<int>(vcount));
btVector3 zero;
zero.setZero();
vertexSource.resize(static_cast<int>(vcount), zero);

btVector3 scale;

Expand Down

0 comments on commit 2c204c4

Please sign in to comment.