This fixes issues with replicate instances & plugin-analysis instances
not using the same set of parameters.
_plugin = _state->plugin;
- // Plugin::setup_controls ();
+ XMLNode* root = new XMLNode (other.state_node_name ());
+ LocaleGuard lg;
+ other.add_state (root);
+ set_state (*root, Stateful::loading_state_version);
+ delete root;
}
LXVSTPlugin::~LXVSTPlugin ()
_plugin = _state->plugin;
- // Plugin::setup_controls ();
+ XMLNode* root = new XMLNode (other.state_node_name ());
+ LocaleGuard lg;
+ other.add_state (root);
+ set_state (*root, Stateful::loading_state_version);
+ delete root;
}
MacVSTPlugin::~MacVSTPlugin ()
Session::vst_current_loading_id = 0;
_plugin = _state->plugin;
+
+ XMLNode* root = new XMLNode (other.state_node_name ());
+ LocaleGuard lg;
+ other.add_state (root);
+ set_state (*root, Stateful::loading_state_version);
+ delete root;
}
WindowsVSTPlugin::~WindowsVSTPlugin ()