From 2fb260e6e8d0ba06a34696b2a4d20648fcbed0b3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 20 Feb 2020 23:11:04 +0100 Subject: [PATCH] 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 --- libs/ardour/send.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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) {