Skip to content

Commit

Permalink
MeshCollisionShape: add an assertion in createShape()
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Apr 22, 2024
1 parent d157e83 commit 57c69fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ private void createShape() {
setOptimizedBvh(shapeId, bvhId, scale);
}
assert hasBvh(shapeId);
assert bvh.isCompressed() == useCompression :
bvh.isCompressed() + " != " + useCompression;
}
// *************************************************************************
// native private methods
Expand Down

0 comments on commit 57c69fc

Please sign in to comment.