mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Fix strip state import and preset load for VST3 plugins
This commit is contained in:
parent
b9154359a3
commit
8e051bb488
1 changed files with 9 additions and 0 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue