mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:59:57 +00:00
Merge branch 'hey-i-cant-crouch' into 'master'
FIX: Actually set the transform so first person camera works again See merge request OpenMW/openmw!4232
This commit is contained in:
commit
6b3c47a30d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue