Copy state when replicating VST3 plugins (#9006)

This commit is contained in:
Robin Gareus 2022-11-04 17:40:37 +01:00
parent fe8d2e7695
commit 0aad0ae464
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -66,6 +66,10 @@ VST3Plugin::VST3Plugin (const VST3Plugin& other)
boost::shared_ptr<VST3PluginInfo> nfo = boost::dynamic_pointer_cast<VST3PluginInfo> (other.get_info ());
_plug = new VST3PI (nfo->m, nfo->unique_id);
init ();
XMLNode root (other.state_node_name ());
other.add_state (&root);
set_state (root, Stateful::current_state_version);
}
VST3Plugin::~VST3Plugin ()