Track current CC values after restore

This commit is contained in:
Jean Pierre Cimalando 2021-04-06 00:33:04 +02:00
parent 2cca5c31f3
commit cb85ca3970

View file

@ -1355,8 +1355,11 @@ restore(LV2_Handle instance,
for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) {
absl::optional<float> value = cc_values[cc];
if (value) {
// Mark CCs for automation with state values
self->ccauto[cc] = *value;
self->have_ccauto = true;
// Update the current CCs
self->cc_current[cc] = *value;
}
}