cache waveforms at clip level

This commit is contained in:
itsmattkc
2022-05-22 20:54:59 -07:00
parent b99fb32954
commit f124ad3178
21 changed files with 429 additions and 329 deletions
+4 -4
View File
@@ -136,7 +136,7 @@ void SequenceDialog::accept()
sequence_->SetVideoParams(video_params);
sequence_->SetAudioParams(audio_params);
sequence_->SetLabel(name_field_->text());
sequence_->video_frame_cache()->SetEnabled(parameter_tab_->GetSelectedPreviewAutoCache());
sequence_->video_frame_cache()->SetIsAutomatic(parameter_tab_->GetSelectedPreviewAutoCache());
}
QDialog::accept();
@@ -170,7 +170,7 @@ SequenceDialog::SequenceParamCommand::SequenceParamCommand(Sequence* s,
old_video_params_(s->GetVideoParams()),
old_audio_params_(s->GetAudioParams()),
old_name_(s->GetLabel()),
old_autocache_(s->video_frame_cache()->IsEnabled())
old_autocache_(s->video_frame_cache()->IsAutomatic())
{
}
@@ -188,7 +188,7 @@ void SequenceDialog::SequenceParamCommand::redo()
sequence_->SetAudioParams(new_audio_params_);
}
sequence_->SetLabel(new_name_);
sequence_->video_frame_cache()->SetEnabled(new_autocache_);
sequence_->video_frame_cache()->SetIsAutomatic(new_autocache_);
}
void SequenceDialog::SequenceParamCommand::undo()
@@ -200,7 +200,7 @@ void SequenceDialog::SequenceParamCommand::undo()
sequence_->SetAudioParams(old_audio_params_);
}
sequence_->SetLabel(old_name_);
sequence_->video_frame_cache()->SetEnabled(old_autocache_);
sequence_->video_frame_cache()->SetIsAutomatic(old_autocache_);
}
}