Fix an out-by-one error when expanding intervals.

This commit is contained in:
Bill Currie 2012-04-21 20:16:28 +09:00
parent 965680f5dd
commit 7317aaf109
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ def process_frame(mdl, scene, frame, vertmap, ingroup = False,
if 'intervals' in frame:
intervals += list(frame['intervals'])
intervals = list(map(lambda x: float(x), intervals))
while len(intervals) < len(frame['frames']):
while len(intervals) < len(frame['frames']) + 1:
intervals.append(intervals[-1] + 0.1)
fr = MDL.Frame()
for i, f in enumerate(frame['frames']):