mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Merge remote-tracking branch 'scrawl/light'
This commit is contained in:
commit
d8c40562ae
@ -540,10 +540,13 @@ bool NpcAnimation::addOrReplaceIndividualPart(ESM::PartReferenceType type, int g
|
|||||||
if(skel->hasBone("BoneOffset"))
|
if(skel->hasBone("BoneOffset"))
|
||||||
{
|
{
|
||||||
Ogre::Bone *offset = skel->getBone("BoneOffset");
|
Ogre::Bone *offset = skel->getBone("BoneOffset");
|
||||||
|
|
||||||
root->translate(offset->getPosition());
|
root->translate(offset->getPosition());
|
||||||
root->rotate(offset->getOrientation());
|
|
||||||
// HACK: Why an extra -90 degree rotation?
|
// It appears that the BoneOffset rotation is completely bogus, at least for light models.
|
||||||
|
//root->rotate(offset->getOrientation());
|
||||||
root->pitch(Ogre::Degree(-90.0f));
|
root->pitch(Ogre::Degree(-90.0f));
|
||||||
|
|
||||||
root->scale(offset->getScale());
|
root->scale(offset->getScale());
|
||||||
root->setInitialState();
|
root->setInitialState();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user