Browse Source

interval: fix ActorInterval endFrame assignment when passing duration

Fixes: #187
rdb 8 years ago
parent
commit
3f0ab1d198
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/interval/ActorInterval.py

+ 1 - 1
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.