1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-28 12:40:06 +00:00

Add Camera.isZoomEnabled check to move360 zooming

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.
This commit is contained in:
trav5 2024-07-08 23:30:05 +02:00
parent 3a5ed998e7
commit d4e6dd9f8c
2 changed files with 3 additions and 1 deletions

View File

@ -184,6 +184,7 @@
Bug #8005: F3 stats bars are sorted not according to their place in the timeline 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 #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 #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 #1415: Infinite fall failsafe
Feature #2566: Handle NAM9 records for manual cell references Feature #2566: Handle NAM9 records for manual cell references
Feature #3537: Shader-based water ripples Feature #3537: Shader-based water ripples

View File

@ -35,7 +35,8 @@ local function processZoom3rdPerson()
not Player.getControlSwitch(self, Player.CONTROL_SWITCH.ViewMode) or not Player.getControlSwitch(self, Player.CONTROL_SWITCH.ViewMode) or
not Player.getControlSwitch(self, Player.CONTROL_SWITCH.Controls) or not Player.getControlSwitch(self, Player.CONTROL_SWITCH.Controls) or
input.getBooleanActionValue('TogglePOV') or input.getBooleanActionValue('TogglePOV') or
not I.Camera.isModeControlEnabled() not I.Camera.isModeControlEnabled() or
not I.Camera.isZoomEnabled()
then then
return return
end end