mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user