From 4e5462bc1977ebab9d07baf37c5b11d531686cce Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 19 Feb 2016 14:23:55 +0100 Subject: [PATCH] Don't attempt to create a collision shape for an empty TriShape --- components/nifbullet/bulletnifloader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/nifbullet/bulletnifloader.cpp b/components/nifbullet/bulletnifloader.cpp index 19afe49d6..9ac544c42 100644 --- a/components/nifbullet/bulletnifloader.cpp +++ b/components/nifbullet/bulletnifloader.cpp @@ -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)