summaryrefslogtreecommitdiff
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/img_ops.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/img_ops.py b/rpc/img_ops.py
index 35268d6..e748af4 100644
--- a/rpc/img_ops.py
+++ b/rpc/img_ops.py
@@ -124,7 +124,8 @@ def mix_next_image(opt, data_opt, rpc_client, im, sequence, i=0, sequence_i=0, s
recursive_frac = data_opt.recursive_frac
sequence_frac = data_opt.sequence_frac
- if data_opt.sequence_skip > 0 and data_opt.fade_sequence > 0:
+
+ 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))