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();
|
bone = skel->createBone();
|
||||||
if(parent) parent->addChild(bone);
|
if(parent) parent->addChild(bone);
|
||||||
|
|
||||||
if(!node->boneTrafo)
|
|
||||||
bone->setManuallyControlled(true);
|
|
||||||
bone->setOrientation(node->trafo.rotation);
|
bone->setOrientation(node->trafo.rotation);
|
||||||
bone->setPosition(node->trafo.pos);
|
bone->setPosition(node->trafo.pos);
|
||||||
bone->setScale(Ogre::Vector3(node->trafo.scale));
|
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;
|
Nif::ExtraPtr e = node->extra;
|
||||||
while(!e.empty())
|
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());
|
const Nif::NiTextKeyExtraData *tk = static_cast<const Nif::NiTextKeyExtraData*>(e.getPtr());
|
||||||
textkeys = extractTextKeys(tk);
|
textkeys = extractTextKeys(tk);
|
||||||
|
|
Loading…
Reference in a new issue