mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 05:45:35 +00:00
Fix rotation offset of some lights (bug 955)
This commit is contained in:
parent
39de0510a0
commit
a1fe07181c
1 changed files with 5 additions and 2 deletions
|
@ -540,10 +540,13 @@ bool NpcAnimation::addOrReplaceIndividualPart(ESM::PartReferenceType type, int g
|
|||
if(skel->hasBone("BoneOffset"))
|
||||
{
|
||||
Ogre::Bone *offset = skel->getBone("BoneOffset");
|
||||
|
||||
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->scale(offset->getScale());
|
||||
root->setInitialState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue