mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 16:09:41 +00:00
Fix incorrect rotation for meshes with BoneOffset
This commit is contained in:
parent
c4452afd89
commit
7882c3d7f0
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ namespace SceneUtil
|
||||||
trans = new osg::PositionAttitudeTransform;
|
trans = new osg::PositionAttitudeTransform;
|
||||||
trans->setPosition(boneOffset->getMatrix().getTrans());
|
trans->setPosition(boneOffset->getMatrix().getTrans());
|
||||||
// The BoneOffset rotation seems to be incorrect
|
// The BoneOffset rotation seems to be incorrect
|
||||||
trans->setAttitude(osg::Quat(-90, osg::Vec3f(1,0,0)));
|
trans->setAttitude(osg::Quat(osg::DegreesToRadians(-90.f), osg::Vec3f(1,0,0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attachNode.find("Left") != std::string::npos)
|
if (attachNode.find("Left") != std::string::npos)
|
||||||
|
|
Loading…
Reference in a new issue