added seek also selects #297

This commit is contained in:
itsmattkc
2019-01-11 19:04:34 +11:00
parent 9a17a2cfab
commit 5bb256156e
8 changed files with 40 additions and 6 deletions
+8 -3
View File
@@ -238,11 +238,16 @@ bool frame_rate_is_droppable(float rate) {
void Viewer::seek(long p) {
pause();
seq->playhead = p;
bool update_fx = false;
if (main_sequence) {
panel_timeline->scroll_to_frame(p);
panel_effect_controls->scroll_to_frame(p);
if (config.seek_also_selects) {
panel_timeline->select_from_playhead();
update_fx = true;
}
}
update_parents();
update_parents(update_fx);
reset_all_audio();
audio_scrub = true;
}
@@ -410,9 +415,9 @@ void Viewer::update_header_zoom() {
}
}
void Viewer::update_parents() {
void Viewer::update_parents(bool reload_fx) {
if (main_sequence) {
update_ui(false);
update_ui(reload_fx);
} else {
update_viewer();
}