summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotor.h')
-rwxr-xr-xrotord/src/rotor.h8
1 files changed, 7 insertions, 1 deletions
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;i<image_inputs.size();i++){
+ int whichinput=((int)inputs[0]->get((Time_spec)frame)+i)%image_inputs.size();
+ Image *in=image_inputs[whichinput]->get(frame);
+ if (in) return in;
+ }
+ return nullptr;
}
Video_cycler* clone(map<string,string> &_settings) { return new Video_cycler(_settings);};
};