Fix strip state import and preset load for VST3 plugins

This commit is contained in:
Robin Gareus 2025-12-07 18:59:37 +01:00
parent b9154359a3
commit 8e051bb488
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -2688,6 +2688,11 @@ VST3PI::load_state (RAMStream& stream)
}
PBD::Unwinder<bool> uw (_is_loading_state, true);
bool was_active = _is_processing;
if (!deactivate ()) {
DEBUG_TRACE (DEBUG::VST3Config, "VST3PI::load_state failed to deactivate plugin\n");
}
int32 count;
stream.read_int32 (count);
@ -2757,6 +2762,10 @@ VST3PI::load_state (RAMStream& stream)
synced = synchronize_states ();
}
if (was_active) {
activate ();
}
if (rv && synced) {
update_shadow_data ();
}