mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 14:09:42 +00:00
Remove useless parameter
This commit is contained in:
parent
c3298d13a6
commit
330e596c64
2 changed files with 3 additions and 5 deletions
|
@ -131,16 +131,14 @@ osg::ref_ptr<Resource::BulletShape> BulletNifLoader::load(const Nif::File& nif)
|
||||||
|
|
||||||
// Find a boundingBox in the node hierarchy.
|
// Find a boundingBox in the node hierarchy.
|
||||||
// Return: use bounding box for collision?
|
// Return: use bounding box for collision?
|
||||||
bool BulletNifLoader::findBoundingBox(const Nif::Node* node, int flags)
|
bool BulletNifLoader::findBoundingBox(const Nif::Node* node)
|
||||||
{
|
{
|
||||||
flags |= node->flags;
|
|
||||||
|
|
||||||
if (node->hasBounds)
|
if (node->hasBounds)
|
||||||
{
|
{
|
||||||
mShape->mCollisionBoxHalfExtents = node->boundXYZ;
|
mShape->mCollisionBoxHalfExtents = node->boundXYZ;
|
||||||
mShape->mCollisionBoxTranslate = node->boundPos;
|
mShape->mCollisionBoxTranslate = node->boundPos;
|
||||||
|
|
||||||
if (flags & Nif::NiNode::Flag_BBoxCollision)
|
if (node->flags & Nif::NiNode::Flag_BBoxCollision)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
osg::ref_ptr<Resource::BulletShape> load(const Nif::File& file);
|
osg::ref_ptr<Resource::BulletShape> load(const Nif::File& file);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool findBoundingBox(const Nif::Node* node, int flags = 0);
|
bool findBoundingBox(const Nif::Node* node);
|
||||||
|
|
||||||
void handleNode(const std::string& fileName, Nif::Node const *node, int flags, bool isCollisionNode, bool isAnimated=false, bool autogenerated=false);
|
void handleNode(const std::string& fileName, Nif::Node const *node, int flags, bool isCollisionNode, bool isAnimated=false, bool autogenerated=false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue