forked from mirror/openmw-tes3mp
Set non-bone nodes as manually controlled
This commit is contained in:
parent
e5ce55b6a4
commit
18389c7b04
1 changed files with 2 additions and 1 deletions
|
@ -306,11 +306,12 @@ void buildBones(Ogre::Skeleton *skel, const Nif::Node *node, std::vector<Nif::Ni
|
|||
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));
|
||||
bone->setBindingPose();
|
||||
bone->setInitialState();
|
||||
|
||||
Nif::ControllerPtr ctrl = node->controller;
|
||||
while(!ctrl.empty())
|
||||
|
|
Loading…
Reference in a new issue