1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-28 20:36:40 +00:00

Disable head controller for non-bipedal creatures (Fixes #2843, Fixes #2966)

This commit is contained in:
scrawl 2015-10-13 17:55:57 +02:00
parent a88d56148b
commit ee450471fd

View file

@ -1320,6 +1320,8 @@ namespace MWRender
{
mHeadController = NULL;
if (mPtr.getClass().isBipedal(mPtr))
{
NodeMap::iterator found = mNodeMap.find("bip01 head");
if (found != mNodeMap.end() && dynamic_cast<osg::MatrixTransform*>(found->second.get()))
{
@ -1329,6 +1331,7 @@ namespace MWRender
mActiveControllers.insert(std::make_pair(node, mHeadController));
}
}
}
void Animation::setHeadPitch(float pitchRadians)
{