added backend for disabling clips
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -39,6 +39,7 @@ struct Clip
|
||||
bool undeletable;
|
||||
|
||||
// timeline variables
|
||||
bool enabled;
|
||||
QString name;
|
||||
long clip_in;
|
||||
long timeline_in;
|
||||
|
||||
Reference in New Issue
Block a user