From 25977a911da61dac2afedeab4f8cd82155cba34d Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 21 Aug 2003 16:17:42 +0000 Subject: [PATCH] fix reverse interval --- direct/src/interval/ActorInterval.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/interval/ActorInterval.py b/direct/src/interval/ActorInterval.py index f77188bd3f..7be1d42f54 100644 --- a/direct/src/interval/ActorInterval.py +++ b/direct/src/interval/ActorInterval.py @@ -123,8 +123,12 @@ class ActorInterval(Interval.Interval): # implicit. This is necessary only to guard against # possible roundoff error in computing the final frame # from the duration. - for control in self.controls: - control.pose(self.endFrame) + if self.reverse: + for control in self.controls: + control.pose(self.startFrame) + else: + for control in self.controls: + control.pose(self.endFrame) else: # Otherwise, the user-specified duration determines which