mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:45:34 +00:00
This commit is contained in:
parent
a88d56148b
commit
ee450471fd
1 changed files with 9 additions and 6 deletions
|
@ -1320,13 +1320,16 @@ namespace MWRender
|
|||
{
|
||||
mHeadController = NULL;
|
||||
|
||||
NodeMap::iterator found = mNodeMap.find("bip01 head");
|
||||
if (found != mNodeMap.end() && dynamic_cast<osg::MatrixTransform*>(found->second.get()))
|
||||
if (mPtr.getClass().isBipedal(mPtr))
|
||||
{
|
||||
osg::Node* node = found->second;
|
||||
mHeadController = new RotateController(mObjectRoot.get());
|
||||
node->addUpdateCallback(mHeadController);
|
||||
mActiveControllers.insert(std::make_pair(node, mHeadController));
|
||||
NodeMap::iterator found = mNodeMap.find("bip01 head");
|
||||
if (found != mNodeMap.end() && dynamic_cast<osg::MatrixTransform*>(found->second.get()))
|
||||
{
|
||||
osg::Node* node = found->second;
|
||||
mHeadController = new RotateController(mObjectRoot.get());
|
||||
node->addUpdateCallback(mHeadController);
|
||||
mActiveControllers.insert(std::make_pair(node, mHeadController));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue