From 1a2a58fdd61efeff7ae5ebbb699526220bb47a6f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 9 Jun 2011 13:55:52 +0000 Subject: 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 --- libs/ardour/plugin_insert.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index de7f011e97..a92427409c 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -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); -- cgit v1.2.3