merge zoom changes
This commit is contained in:
parent
0883f50f25
commit
67f565e81b
|
@ -335,9 +335,12 @@ class Camera:
|
||||||
tilt = max(tilt, delta['elevation'])
|
tilt = max(tilt, delta['elevation'])
|
||||||
changed = True
|
changed = True
|
||||||
'''
|
'''
|
||||||
if zoom and (not delta['absoluteZoom'] or (delta['absoluteZoom'] >= 0) != direction['absoluteZoom']):
|
if delta and 'absoluteZoom' in delta and 'absoluteZoom' in direction:
|
||||||
zoom = 0
|
if zoom and (not delta['absoluteZoom'] or (delta['absoluteZoom'] >= 0) != direction['absoluteZoom']):
|
||||||
changed = True
|
zoom = 0
|
||||||
|
changed = True
|
||||||
|
elif delta:
|
||||||
|
print('no absoluteZoom in delta?', delta, direction)
|
||||||
|
|
||||||
if changed or not n % 500:
|
if changed or not n % 500:
|
||||||
print('update move', move, current)
|
print('update move', move, current)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user