1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Set non-bone nodes as manually controlled

This commit is contained in:
Chris Robinson 2013-01-05 17:50:22 -08:00
parent e5ce55b6a4
commit 18389c7b04

View File

@ -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())