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.

actorid
scrawl 11 years ago
parent 03b2e99802
commit 0a8c61a7fe

@ -229,7 +229,8 @@ void ManualBulletShapeLoader::handleNode(btTriangleMesh* mesh, const Nif::Node *
{ {
if(node->hasBounds) 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->mBoxTranslation = node->boundPos;
mShape->mBoxRotation = node->boundRot; mShape->mBoxRotation = node->boundRot;

Loading…
Cancel
Save