forked from teamnwah/openmw-tes3coop
Use the first bone with text keys as the nonaccum root.
This commit is contained in:
parent
536f8104e6
commit
8e8900e422
1 changed files with 1 additions and 3 deletions
|
@ -320,8 +320,6 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&nonacc
|
|||
bone = skel->createBone();
|
||||
if(parent) parent->addChild(bone);
|
||||
|
||||
if(!node->boneTrafo)
|
||||
bone->setManuallyControlled(true);
|
||||
bone->setOrientation(node->trafo.rotation);
|
||||
bone->setPosition(node->trafo.pos);
|
||||
bone->setScale(Ogre::Vector3(node->trafo.scale));
|
||||
|
@ -338,7 +336,7 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *&nonacc
|
|||
Nif::ExtraPtr e = node->extra;
|
||||
while(!e.empty())
|
||||
{
|
||||
if(e->recType == Nif::RC_NiTextKeyExtraData)
|
||||
if(e->recType == Nif::RC_NiTextKeyExtraData && !nonaccum)
|
||||
{
|
||||
const Nif::NiTextKeyExtraData *tk = static_cast<const Nif::NiTextKeyExtraData*>(e.getPtr());
|
||||
textkeys = extractTextKeys(tk);
|
||||
|
|
Loading…
Reference in a new issue