13
0

Copy state when replicating an AU plugin

This is only used for plugin-analysis, AU plugins are otherwise not
replicated, and variable-i/o is used instead
This commit is contained in:
Robin Gareus 2019-02-28 04:47:48 +01:00
parent 4397ec9ce6
commit 2ee2b8481c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -498,6 +498,11 @@ AUPlugin::AUPlugin (const AUPlugin& other)
{ {
init (); init ();
XMLNode root (other.state_node_name ());
other.add_state (&root);
set_state (root, Stateful::loading_state_version);
for (size_t i = 0; i < descriptors.size(); ++i) { for (size_t i = 0; i < descriptors.size(); ++i) {
set_parameter (i, other.get_parameter (i)); set_parameter (i, other.get_parameter (i));
} }