1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

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

This commit is contained in:
scrawl 2016-02-19 14:23:55 +01:00
parent 7f89bb273a
commit 4e5462bc19

View File

@ -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)