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:
parent
e5ce55b6a4
commit
18389c7b04
@ -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…
x
Reference in New Issue
Block a user