Skip to content

Commit

Permalink
bugfix: SIGTRAP in ConvexHullShape.cpp:1191
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 9, 2024
1 parent eccb87c commit 2882327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/native/glue/Shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_Shape_copyDebugTriang
pSh->GetTrianglesStart(context, AABox::sBiggest(),
Vec3::sZero(), Quat::sIdentity(), Vec3::sReplicate(1.0f));
while (numTriangles > 0) {
int maxRequest = max(
numTriangles, Shape::cGetTrianglesMinTrianglesRequested);
uint numTrianglesCopied
= pSh->GetTrianglesNext(context, numTriangles, pFloat3);
= pSh->GetTrianglesNext(context, maxRequest, pFloat3);
JPH_ASSERT(numTrianglesCopied <= numTriangles);
if (numTrianglesCopied == 0) {
break;
Expand Down

0 comments on commit 2882327

Please sign in to comment.