mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Fixed pageUp/Down bug
This commit is contained in:
parent
93b66d6706
commit
a9ade97ed0
@ -827,7 +827,9 @@ class LevelEditor(NodePath, DirectObject):
|
||||
"""
|
||||
lerp the camera P over time (used by the battle)
|
||||
"""
|
||||
taskMgr.remove('cam-p-lerp-play')
|
||||
taskMgr.remove('cam-p-lerp')
|
||||
if self.avatar:
|
||||
self.avatar.stopUpdateSmartCamera()
|
||||
def setCamP(p):
|
||||
base.camera.setP(p)
|
||||
|
||||
@ -850,6 +852,9 @@ class LevelEditor(NodePath, DirectObject):
|
||||
self.isPageUp = 0
|
||||
#self.setCameraPositionByIndex(self.cameraIndex)
|
||||
|
||||
if self.avatar:
|
||||
self.avatar.startUpdateSmartCamera()
|
||||
|
||||
def pageUp(self):
|
||||
if not self.isPageUp:
|
||||
self.lerpCameraP(36.8699, 0.6)
|
||||
|
Loading…
x
Reference in New Issue
Block a user