mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 03:40:04 +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:
parent
3a5ed998e7
commit
d4e6dd9f8c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user