almost finished setting in-out points in footage viewer

This commit is contained in:
itsmattkc
2018-10-19 01:36:11 +11:00
parent 06bd088999
commit c37632d3aa
8 changed files with 136 additions and 16 deletions
+16
View File
@@ -163,6 +163,14 @@ void SetTimelineInOutCommand::undo() {
seq->workarea_in = old_in;
seq->workarea_out = old_out;
// footage viewer functions
if (seq->wrapper_sequence) {
Media* m = static_cast<Media*>(seq->clips.at(0)->media);
m->using_inout = old_enabled;
m->in = old_in;
m->out = old_out;
}
mainWindow->setWindowModified(old_project_changed);
}
@@ -175,6 +183,14 @@ void SetTimelineInOutCommand::redo() {
seq->workarea_in = new_in;
seq->workarea_out = new_out;
// footage viewer functions
if (seq->wrapper_sequence) {
Media* m = static_cast<Media*>(seq->clips.at(0)->media);
m->using_inout = new_enabled;
m->in = new_in;
m->out = new_out;
}
mainWindow->setWindowModified(true);
}