Skip to content

Commit

Permalink
Merge branch 'hey-i-cant-crouch' into 'master'
Browse files Browse the repository at this point in the history
FIX: Actually set the transform so first person camera works again

See merge request OpenMW/openmw!4232
  • Loading branch information
magicaldave committed Jul 4, 2024
2 parents 7d88474 + fc65643 commit 6b3c47a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/openmw/mwrender/rotatecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace MWRender

osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate();
matrix.setRotate(orient);
matrix.setTrans(matrix.getTrans() + worldOrientInverse * mOffset);

matrix *= osg::Matrix::scale(worldScale);

Expand Down

0 comments on commit 6b3c47a

Please sign in to comment.