mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
don't merge if hulls are empty
This commit is contained in:
parent
049a2af90f
commit
95ea729454
@ -142,6 +142,11 @@ CHull * ConvexBuilder::canMerge(CHull *a,CHull *b)
|
||||
unsigned int vcount = Vl_getVcount(vc);
|
||||
const float *vertices = Vl_getVertices(vc);
|
||||
unsigned int tcount = indices.size()/3;
|
||||
|
||||
//don't do anything if hull is empty
|
||||
if (!tcount)
|
||||
return 0;
|
||||
|
||||
unsigned int *idx = &indices[0];
|
||||
|
||||
HullResult hresult;
|
||||
|
Loading…
Reference in New Issue
Block a user