allow compound collision shapes with less than 2 sub-shapes

This commit is contained in:
Seth Alves 2015-08-25 11:46:34 -07:00
parent 7cb9968864
commit caafea6e3b

View file

@ -94,7 +94,6 @@ btCollisionShape* ShapeFactory::createShapeFromInfo(const ShapeInfo& info) {
if (numSubShapes == 1) {
shape = createConvexHull(info.getPoints()[0]);
} else {
assert(numSubShapes > 1);
auto compound = new btCompoundShape();
btTransform trans;
trans.setIdentity();