mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:23:52 +00:00
Bug #1126: Golden saints and many other creatures only have "Bip01 Head"
This commit is contained in:
parent
4e360136b1
commit
1a00f26390
2 changed files with 3 additions and 1 deletions
|
@ -225,7 +225,7 @@ namespace MWBase
|
|||
|
||||
/// Returns a pointer to the object the provided object would hit (if within the
|
||||
/// specified distance), and the point where the hit occurs. This will attempt to
|
||||
/// use the "Head" node as a basis.
|
||||
/// use the "Head" node, or alternatively the "Bip01 Head" node as a basis.
|
||||
virtual std::pair<MWWorld::Ptr,Ogre::Vector3> getHitContact(const MWWorld::Ptr &ptr, float distance) = 0;
|
||||
|
||||
virtual void adjustPosition (const MWWorld::Ptr& ptr) = 0;
|
||||
|
|
|
@ -821,6 +821,8 @@ namespace MWWorld
|
|||
if(anim != NULL)
|
||||
{
|
||||
Ogre::Node *node = anim->getNode("Head");
|
||||
if (node == NULL)
|
||||
node = anim->getNode("Bip01 Head");
|
||||
if(node != NULL)
|
||||
pos += node->_getDerivedPosition();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue