From a2e1bf3495b7bfefdaedb8fc737e969ab06df079 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 4 Sep 2013 16:41:30 +0100 Subject: cycler cut to next available slot --- rotord/src/rotor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index d6426f5..20089b8 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -430,7 +430,13 @@ namespace Rotor { } return nullptr; } - return image_inputs[((int)inputs[0]->get((Time_spec)frame))%image_inputs.size()]->get(frame); + //cut mode + for (int i=0;iget((Time_spec)frame)+i)%image_inputs.size(); + Image *in=image_inputs[whichinput]->get(frame); + if (in) return in; + } + return nullptr; } Video_cycler* clone(map &_settings) { return new Video_cycler(_settings);}; }; -- cgit v1.2.3