From 0a8c61a7fe298b9d7f75490753e4dc3031f92e85 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 15 Jan 2014 07:42:51 +0100 Subject: [PATCH] Bug #1107: Reverted previous fix, which caused problems with some actors not using a box shape as expected. Instead, do not create a bounding box collision shape for hidden nodes. --- components/nifbullet/bulletnifloader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/nifbullet/bulletnifloader.cpp b/components/nifbullet/bulletnifloader.cpp index 65f90c8c1..cdddb94d0 100644 --- a/components/nifbullet/bulletnifloader.cpp +++ b/components/nifbullet/bulletnifloader.cpp @@ -229,7 +229,8 @@ void ManualBulletShapeLoader::handleNode(btTriangleMesh* mesh, const Nif::Node * { if(node->hasBounds) { - if (node->flags & Nif::NiNode::Flag_BBoxCollision) + // Checking for BBoxCollision flag causes issues with some actors :/ + if (!(node->flags & Nif::NiNode::Flag_Hidden)) { mShape->mBoxTranslation = node->boundPos; mShape->mBoxRotation = node->boundRot;