mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Bug #1126: Golden saints and many other creatures only have "Bip01 Head"
This commit is contained in:
parent
4e360136b1
commit
1a00f26390
@ -225,7 +225,7 @@ namespace MWBase
|
|||||||
|
|
||||||
/// Returns a pointer to the object the provided object would hit (if within the
|
/// 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
|
/// 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 std::pair<MWWorld::Ptr,Ogre::Vector3> getHitContact(const MWWorld::Ptr &ptr, float distance) = 0;
|
||||||
|
|
||||||
virtual void adjustPosition (const MWWorld::Ptr& ptr) = 0;
|
virtual void adjustPosition (const MWWorld::Ptr& ptr) = 0;
|
||||||
|
@ -821,6 +821,8 @@ namespace MWWorld
|
|||||||
if(anim != NULL)
|
if(anim != NULL)
|
||||||
{
|
{
|
||||||
Ogre::Node *node = anim->getNode("Head");
|
Ogre::Node *node = anim->getNode("Head");
|
||||||
|
if (node == NULL)
|
||||||
|
node = anim->getNode("Bip01 Head");
|
||||||
if(node != NULL)
|
if(node != NULL)
|
||||||
pos += node->_getDerivedPosition();
|
pos += node->_getDerivedPosition();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user