forked from 0x2620/pandora
allow adding 0 frame clips
This commit is contained in:
parent
875cbbeaa7
commit
f95fc3db6e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue