forked from mirror/openmw-tes3mp
Don't attempt to create a collision shape for an empty TriShape
This commit is contained in:
parent
7f89bb273a
commit
4e5462bc19
1 changed files with 5 additions and 0 deletions
|
@ -266,6 +266,11 @@ void BulletNifLoader::handleNiTriShape(const Nif::NiTriShape *shape, int flags,
|
||||||
if (!shape->skin.empty())
|
if (!shape->skin.empty())
|
||||||
isAnimated = false;
|
isAnimated = false;
|
||||||
|
|
||||||
|
if (shape->data.empty())
|
||||||
|
return;
|
||||||
|
if (shape->data->triangles->empty())
|
||||||
|
return;
|
||||||
|
|
||||||
if (isAnimated)
|
if (isAnimated)
|
||||||
{
|
{
|
||||||
if (!mCompoundShape)
|
if (!mCompoundShape)
|
||||||
|
|
Loading…
Reference in a new issue