Fixed background loading bug

pull/1415/head
Andrew Chan 3 years ago
parent 6041cce53e
commit 26af4064fc

@ -24,9 +24,10 @@ background_options.pop("__comment", None)
for name in list(background_options.keys()): for name in list(background_options.keys()):
pos = background_options[name][3] pos = background_options[name][3]
if pos != "center": if pos == "center":
background_options[name][3] = lambda t: ("center", pos + t) pos = 0
background_options[name][3] = lambda t: ("center", pos + t)
def get_start_and_end_times(video_length: int, length_of_clip: int) -> Tuple[int, int]: def get_start_and_end_times(video_length: int, length_of_clip: int) -> Tuple[int, int]:
"""Generates a random interval of time to be used as the background of the video. """Generates a random interval of time to be used as the background of the video.

Loading…
Cancel
Save