interval: fix ActorInterval endFrame assignment when passing duration

Fixes: #187
This commit is contained in:
rdb 2017-11-03 20:07:24 +01:00
parent c043755f94
commit 3f0ab1d198

View File

@ -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.