added backend for disabling clips

This commit is contained in:
itsmattkc
2018-06-22 02:45:52 -07:00
parent 26f7b5a15d
commit 38ca51cf10
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ void retrieve_next_frame_raw_data(Clip* c, AVFrame* output) {
}
bool is_clip_active(Clip* c, long playhead) {
return c->timeline_in < playhead + ceil(c->sequence->frame_rate) && c->timeline_out > playhead;
return c->timeline_in < playhead + ceil(c->sequence->frame_rate) && c->timeline_out > playhead && c->enabled;
}
void set_sequence(Sequence* s) {
+2
View File
@@ -18,6 +18,7 @@ Clip::Clip() {
Clip* Clip::copy() {
Clip* copy = new Clip();
copy->enabled = enabled;
copy->name = QString(name);
copy->clip_in = clip_in;
copy->timeline_in = timeline_in;
@@ -39,6 +40,7 @@ Clip* Clip::copy() {
void Clip::init() {
reset();
enabled = true;
clip_in = 0;
timeline_in = 0;
timeline_out = 0;
+1
View File
@@ -39,6 +39,7 @@ struct Clip
bool undeletable;
// timeline variables
bool enabled;
QString name;
long clip_in;
long timeline_in;