diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:23 +0000 |
commit | 78986385e17b82a6704c8792fb21a42cd86add9a (patch) | |
tree | 54bdca03098ff7e26b536b0640e3321b4b0a042e /libs/ardour/plugin_insert.cc | |
parent | 7c5f1b7a26df60417590340d4cfe367ed00e180a (diff) |
Fix save/load of MIDI automation state. Fixes #3354.
git-svn-id: svn://localhost/ardour2/branches/3.0@7578 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index fa48156787..d1f09dd0a8 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -114,7 +114,7 @@ PluginInsert::~PluginInsert () } void -PluginInsert::auto_state_changed (Evoral::Parameter which) +PluginInsert::control_list_automation_state_changed (Evoral::Parameter which, AutoState s) { if (which.type() != PluginAutomation) return; @@ -122,7 +122,7 @@ PluginInsert::auto_state_changed (Evoral::Parameter which) boost::shared_ptr<AutomationControl> c = boost::dynamic_pointer_cast<AutomationControl>(control (which)); - if (c && ((AutomationList*)c->list().get())->automation_state() != Off) { + if (c && s != Off) { _plugins[0]->set_parameter (which.id(), c->list()->eval (_session.transport_frame())); } } |