mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -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)
|
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):
|
def setCamP(p):
|
||||||
base.camera.setP(p)
|
base.camera.setP(p)
|
||||||
|
|
||||||
@ -850,6 +852,9 @@ class LevelEditor(NodePath, DirectObject):
|
|||||||
self.isPageUp = 0
|
self.isPageUp = 0
|
||||||
#self.setCameraPositionByIndex(self.cameraIndex)
|
#self.setCameraPositionByIndex(self.cameraIndex)
|
||||||
|
|
||||||
|
if self.avatar:
|
||||||
|
self.avatar.startUpdateSmartCamera()
|
||||||
|
|
||||||
def pageUp(self):
|
def pageUp(self):
|
||||||
if not self.isPageUp:
|
if not self.isPageUp:
|
||||||
self.lerpCameraP(36.8699, 0.6)
|
self.lerpCameraP(36.8699, 0.6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user