mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Fix a stupid Lerp crash for posCamera
This commit is contained in:
parent
cc33dee614
commit
0616cc4004
1 changed files with 2 additions and 1 deletions
|
@ -612,7 +612,8 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
|
|||
camera.setPos(savePos)
|
||||
camera.setHpr(saveHpr)
|
||||
taskMgr.remove('posCamera')
|
||||
camera.lerpPosHpr(x, y, z, h, p, r, time, task='posCamera')
|
||||
self.cameraLerp = LerpPosHprInterval(camera, time, Point3(x, y, z), Point3(h, p, r), other=self, name='posCamera')
|
||||
self.cameraLerp.start()
|
||||
|
||||
def getClampedAvatarHeight(self):
|
||||
return max(self.getHeight(), 3.0)
|
||||
|
|
Loading…
Reference in a new issue