mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-27 14:10:46 -04:00
FIX: Actually set the transform so first person camera works again
This commit is contained in:
parent
7d884747fa
commit
fc65643224
@ -52,6 +52,7 @@ namespace MWRender
|
|||||||
|
|
||||||
osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate();
|
osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate();
|
||||||
matrix.setRotate(orient);
|
matrix.setRotate(orient);
|
||||||
|
matrix.setTrans(matrix.getTrans() + worldOrientInverse * mOffset);
|
||||||
|
|
||||||
matrix *= osg::Matrix::scale(worldScale);
|
matrix *= osg::Matrix::scale(worldScale);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user