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:
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…
Reference in New Issue
Block a user