diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index e77e104ec9..808a8afb62 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -420,7 +420,7 @@ LV2Plugin::LV2Plugin (const LV2Plugin& other) XMLNode root (other.state_node_name ()); other.add_state (&root); - set_state (root, Stateful::loading_state_version); + set_state (root, Stateful::current_state_version); for (uint32_t i = 0; i < parameter_count(); ++i) { _control_data[i] = other._shadow_data[i]; diff --git a/libs/ardour/lxvst_plugin.cc b/libs/ardour/lxvst_plugin.cc index 2f4689f779..a00b5adb22 100644 --- a/libs/ardour/lxvst_plugin.cc +++ b/libs/ardour/lxvst_plugin.cc @@ -61,7 +61,7 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other) XMLNode* root = new XMLNode (other.state_node_name ()); other.add_state (root); - set_state (*root, Stateful::loading_state_version); + set_state (*root, Stateful::current_state_version); delete root; init_plugin (); diff --git a/libs/ardour/mac_vst_plugin.cc b/libs/ardour/mac_vst_plugin.cc index 3c7bfa2df5..1fefce87a1 100644 --- a/libs/ardour/mac_vst_plugin.cc +++ b/libs/ardour/mac_vst_plugin.cc @@ -59,7 +59,7 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other) XMLNode* root = new XMLNode (other.state_node_name ()); other.add_state (root); - set_state (*root, Stateful::loading_state_version); + set_state (*root, Stateful::current_state_version); delete root; init_plugin (); diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index d63d8956b3..68fdb961a5 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -181,7 +181,7 @@ PluginInsert::set_count (uint32_t num) if (require_state) { XMLNode& state = _plugins[0]->get_state (); - p->set_state (state, Stateful::loading_state_version); + p->set_state (state, Stateful::current_state_version); } if (active ()) { diff --git a/libs/ardour/windows_vst_plugin.cc b/libs/ardour/windows_vst_plugin.cc index b2d340d928..f1e7c442da 100644 --- a/libs/ardour/windows_vst_plugin.cc +++ b/libs/ardour/windows_vst_plugin.cc @@ -60,7 +60,7 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other) XMLNode* root = new XMLNode (other.state_node_name ()); other.add_state (root); - set_state (*root, Stateful::loading_state_version); + set_state (*root, Stateful::current_state_version); delete root; init_plugin ();