Skip to content

Commit

Permalink
Add Camera.isZoomEnabled check to move360 zooming
Browse files Browse the repository at this point in the history
Early return in the processZoom3rdPerson function at move360.lua
extended with a check for disabled zoom in the Camera interface.

This fixes #8064 - prevents from switching between 1st and 3rd person
camera by pressing zoom in/out inputs when zooming is disabled.
  • Loading branch information
trav5 committed Jul 8, 2024
1 parent 3a5ed99 commit d4e6dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
Bug #8005: F3 stats bars are sorted not according to their place in the timeline
Bug #8018: Potion effects should never explode and always apply on self
Bug #8021: Player's scale doesn't reset when starting a new game
Bug #8064: Lua move360 script doesn't respect the enableZoom/disableZoom Camera interface setting
Feature #1415: Infinite fall failsafe
Feature #2566: Handle NAM9 records for manual cell references
Feature #3537: Shader-based water ripples
Expand Down
3 changes: 2 additions & 1 deletion files/data/scripts/omw/camera/move360.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ local function processZoom3rdPerson()
not Player.getControlSwitch(self, Player.CONTROL_SWITCH.ViewMode) or
not Player.getControlSwitch(self, Player.CONTROL_SWITCH.Controls) or
input.getBooleanActionValue('TogglePOV') or
not I.Camera.isModeControlEnabled()
not I.Camera.isModeControlEnabled() or
not I.Camera.isZoomEnabled()
then
return
end
Expand Down

0 comments on commit d4e6dd9

Please sign in to comment.