diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-22 14:12:30 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-22 14:12:30 +0100 |
commit | 430e51065cbae15ec67ddf78c3b44785d4fd3a9b (patch) | |
tree | 8217c95b5b70a88b954ae653b55d2fe7908d01cd /libs/ardour/ardour/plugin_insert.h | |
parent | e398656940fdc931f58a9a502134bbe3574b4f2a (diff) |
Update cAutomationControl values when copying state
This fixes a bug that can result in inconsistent session-state when
copying plugin state from one plugin to another (via drag/drop
ProcessorBox::object_drop, LINK).
The underlying plugin state and settings are copied, port _shadow_data
is updated, and ::get_parameter() shows the correct new value.
However the Controllable was not updated. On Session save/restore
the value may have be lost or was inconsistently restored.
Diffstat (limited to 'libs/ardour/ardour/plugin_insert.h')
-rw-r--r-- | libs/ardour/ardour/plugin_insert.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/plugin_insert.h b/libs/ardour/ardour/plugin_insert.h index 570b48de9a..9e76a9d5bc 100644 --- a/libs/ardour/ardour/plugin_insert.h +++ b/libs/ardour/ardour/plugin_insert.h @@ -396,6 +396,7 @@ private: void control_list_automation_state_changed (Evoral::Parameter, AutoState); void set_parameter_state_2X (const XMLNode& node, int version); void set_control_ids (const XMLNode&, int version); + void update_control_values (const XMLNode&, int version); void enable_changed (); void bypassable_changed (); |