diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-20 23:11:04 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-20 23:11:04 +0100 |
commit | 2fb260e6e8d0ba06a34696b2a4d20648fcbed0b3 (patch) | |
tree | 80bb75fc28a7756dc283bd8c183f342540edbf82 /libs/ardour | |
parent | 587fc5005930cb6b18e37444883a80ffd3d02b2b (diff) |
Update Control flags of Aux Sends
This fixes old session-state of sessions saved after
6.0-pre0-3039-g93180ceea9 and before 6.0-pre0-3459-g587fc50059.
It's mainly relevant for Mixbus6.0
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/send.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index d3a5a3b28e..0acc1d0b34 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -295,6 +295,13 @@ Send::set_state (const XMLNode& node, int version) XMLNode* gain_node; if ((gain_node = node.child (Controllable::xml_node_name.c_str ())) != 0) { _gain_control->set_state (*gain_node, version); +#if 1 // remove after Ardour 6.0 / Mixbus 6.1 + /* fix old sessions (6.0-pre0-3039-g93180ceea9 .. 6.0-pre0-3459-g587fc50059) + * this is mainly relevant for Mixbus6.0, copy/paste aux-sends. + * -> remove me after 6.1 + */ + _gain_control->set_flags (Controllable::Flag ((int)_gain_control->flags() | Controllable::InlineControl)); +#endif } if (version <= 6000) { |