mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-05 08:45:33 +00:00
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();
|
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));
|
||||||
bone->setBindingPose();
|
bone->setBindingPose();
|
||||||
bone->setInitialState();
|
|
||||||
|
|
||||||
Nif::ControllerPtr ctrl = node->controller;
|
Nif::ControllerPtr ctrl = node->controller;
|
||||||
while(!ctrl.empty())
|
while(!ctrl.empty())
|
||||||
|
|
Loading…
Reference in a new issue