From 099cb047b78680608a926e2554ec1b41590a5291 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 5 Sep 2018 21:11:53 +0200 Subject: fade behavior if zero --- rpc/img_ops.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpc/img_ops.py b/rpc/img_ops.py index ccba950..d118daa 100644 --- a/rpc/img_ops.py +++ b/rpc/img_ops.py @@ -133,6 +133,8 @@ def mix_next_image(opt, data_opt, rpc_client, im, sequence, i=0, sequence_i=0, s if data_opt.sequence_skip > 0 and data_opt.fade_sequence > 1: sequence_frac *= (1.0 - (skip_i * data_opt.fade_sequence) / (data_opt.sequence_skip - 1)) sequence_frac = max(0, min(sequence_frac, 1)) + elif data_opt.sequence_skip > 0 and data_opt.fade_sequence == 0: + sequence_frac = 0 if data_opt.recursive and last_im is not None: if data_opt.sequence and len(sequence) and sequence_frac > 0: -- cgit v1.2.3-70-g09d2