mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
Set all keyframe-controlled bones as manually controlled
This commit is contained in:
parent
9cedd3bb2e
commit
bd34b61f2a
1 changed files with 2 additions and 0 deletions
|
@ -917,6 +917,8 @@ class NIFObjectLoader
|
|||
{
|
||||
int trgtid = NIFSkeletonLoader::lookupOgreBoneHandle(name, ctrl->target->recIndex);
|
||||
Ogre::Bone *trgtbone = scene->mSkelBase->getSkeleton()->getBone(trgtid);
|
||||
// The keyframe controller will control this bone manually
|
||||
trgtbone->setManuallyControlled(true);
|
||||
Ogre::ControllerValueRealPtr srcval((animflags&Nif::NiNode::AnimFlag_AutoPlay) ?
|
||||
Ogre::ControllerManager::getSingleton().getFrameTimeSource() :
|
||||
Ogre::ControllerValueRealPtr());
|
||||
|
|
Loading…
Reference in a new issue