From 3f0ab1d1988a2e5d3f176ad67c44dd7da38db94b Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 3 Nov 2017 20:07:24 +0100 Subject: [PATCH] interval: fix ActorInterval endFrame assignment when passing duration Fixes: #187 --- direct/src/interval/ActorInterval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/interval/ActorInterval.py b/direct/src/interval/ActorInterval.py index 5d8b557ae6..6ac026497b 100644 --- a/direct/src/interval/ActorInterval.py +++ b/direct/src/interval/ActorInterval.py @@ -83,7 +83,7 @@ class ActorInterval(Interval.Interval): if startTime == None: startTime = float(self.startFrame) / float(self.frameRate) endTime = startTime + duration - self.endFrame = duration * self.frameRate + self.endFrame = endTime * self.frameRate else: # No end frame specified. Choose the maximum of all # of the controls' numbers of frames.