filter more invalid clips
This commit is contained in:
parent
0ba80ada1f
commit
098d953bbc
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@ class Edit(models.Model):
|
|||
# dont add clip if in/out are invalid
|
||||
if not c.annotation:
|
||||
duration = c.item.sort.duration
|
||||
if c.start is None or c.end is None:
|
||||
return False
|
||||
if c.start > c.end \
|
||||
or round(c.start, 3) >= round(duration, 3) \
|
||||
or round(c.end, 3) > round(duration, 3):
|
||||
|
|
Loading…
Reference in a new issue