13
0

don't call Processor::set_state() from PluginInsert::set_state() till the plugins are present in the container, so that describe_parameter() can work

git-svn-id: svn://localhost/ardour2/branches/3.0@9696 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-06-09 13:55:52 +00:00
parent 966b62516f
commit 1a2a58fdd6

View File

@ -886,7 +886,6 @@ PluginInsert::set_state(const XMLNode& node, int version)
need_automatables = true;
}
Processor::set_state (node, version);
plugin->set_insert_info (this);
if ((prop = node.property ("count")) != 0) {
@ -920,6 +919,12 @@ PluginInsert::set_state(const XMLNode& node, int version)
}
}
/* we cannot call this until the _plugins contains at least 1
plugin so that we can look up parameter information etc.
*/
Processor::set_state (node, version);
if (need_automatables) {
set_automatable ();
set_control_ids (node, version);