From aa8e8b6d0933f0239132743d0f5337d2c25718a0 Mon Sep 17 00:00:00 2001 From: John Cote Date: Tue, 28 Apr 2015 00:28:12 -0400 Subject: [PATCH] Add back posCamera fix --- otp/avatar/LocalAvatar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otp/avatar/LocalAvatar.py b/otp/avatar/LocalAvatar.py index 28b81f7c..a34365c1 100644 --- a/otp/avatar/LocalAvatar.py +++ b/otp/avatar/LocalAvatar.py @@ -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)