Don't attempt to create a collision shape for an empty TriShape

move
scrawl 9 years ago
parent 7f89bb273a
commit 4e5462bc19

@ -266,6 +266,11 @@ void BulletNifLoader::handleNiTriShape(const Nif::NiTriShape *shape, int flags,
if (!shape->skin.empty())
isAnimated = false;
if (shape->data.empty())
return;
if (shape->data->triangles->empty())
return;
if (isAnimated)
{
if (!mCompoundShape)

Loading…
Cancel
Save