1
0
Fork 0
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:
Dave Corley 2024-07-04 04:22:19 +00:00
commit 6b3c47a30d

View file

@ -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);