mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 03:06:41 +00:00
This commit is contained in:
parent
a88d56148b
commit
ee450471fd
1 changed files with 9 additions and 6 deletions
|
@ -1320,6 +1320,8 @@ namespace MWRender
|
||||||
{
|
{
|
||||||
mHeadController = NULL;
|
mHeadController = NULL;
|
||||||
|
|
||||||
|
if (mPtr.getClass().isBipedal(mPtr))
|
||||||
|
{
|
||||||
NodeMap::iterator found = mNodeMap.find("bip01 head");
|
NodeMap::iterator found = mNodeMap.find("bip01 head");
|
||||||
if (found != mNodeMap.end() && dynamic_cast<osg::MatrixTransform*>(found->second.get()))
|
if (found != mNodeMap.end() && dynamic_cast<osg::MatrixTransform*>(found->second.get()))
|
||||||
{
|
{
|
||||||
|
@ -1329,6 +1331,7 @@ namespace MWRender
|
||||||
mActiveControllers.insert(std::make_pair(node, mHeadController));
|
mActiveControllers.insert(std::make_pair(node, mHeadController));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Animation::setHeadPitch(float pitchRadians)
|
void Animation::setHeadPitch(float pitchRadians)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue