Skip to content

Commit 6e10494

Browse files
committed
Merge branch 'issue_9078_camera_fix' into 'master'
camera: restore primaryMode when disabling standingPreview while in Preview Closes #9078 See merge request OpenMW/openmw!5296
2 parents b7167d1 + dd9611c commit 6e10494

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

files/data/scripts/omw/camera/camera.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ local function updateStandingPreview()
162162
local mode = camera.getMode()
163163
if not previewIfStandStill or next(noStandingPreview)
164164
or mode == MODE.FirstPerson or mode == MODE.Static or mode == MODE.Vanity then
165+
if third_person.standingPreview and mode == MODE.Preview then
166+
camera.setMode(primaryMode)
167+
end
165168
third_person.standingPreview = false
166169
return
167170
end

0 commit comments

Comments
 (0)