diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-15 22:23:16 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-15 22:23:16 -0400 |
commit | 9cb678ebcc2ca0c7993bdd182c9e6ad1f8adf09a (patch) | |
tree | 9a98d4e9bceb8845a759c79007c983af4fc420c7 /libs/ardour/plugin_insert.cc | |
parent | 90f5eb4a31bebeb315d4c36f20b1aefe110657d0 (diff) |
finally get to the bottom of where NO_PLUGIN_STATE needs to be in order to be useful
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 23cebf4276..998a03e3aa 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -882,7 +882,12 @@ PluginInsert::set_control_ids (const XMLNode& node, int version) if ((prop = (*iter)->property (X_("parameter"))) != 0) { uint32_t p = atoi (prop->value()); + + /* this may create the new controllable */ + boost::shared_ptr<Evoral::Control> c = control (Evoral::Parameter (PluginAutomation, 0, p)); + +#ifndef NO_PLUGIN_STATE if (!c) { continue; } @@ -890,6 +895,7 @@ PluginInsert::set_control_ids (const XMLNode& node, int version) if (ac) { ac->set_state (**iter, version); } +#endif } } } |