allow adding 0 frame clips

This commit is contained in:
j 2014-02-07 07:23:18 +00:00
parent 875cbbeaa7
commit f95fc3db6e

View file

@ -81,7 +81,7 @@ class Edit(models.Model):
# dont add clip if in/out are invalid # dont add clip if in/out are invalid
if not clip.annotation: if not clip.annotation:
duration = clip.item.sort.duration duration = clip.item.sort.duration
if clip.start >= clip.end or clip.start >= duration or clip.end > duration: if clip.start > clip.end or clip.start >= duration or clip.end > duration:
return False return False
clip.save() clip.save()
ids.insert(index, clip.id) ids.insert(index, clip.id)