diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-03-05 12:48:30 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-03-05 12:48:30 -0600 |
commit | 5bf90524df6a1a6d62fabd83cda7fac393bfdcbc (patch) | |
tree | 5e5260340fe9dae3f9abc980e7352b140b132aa7 /libs/ardour/route.cc | |
parent | 1089f19a4c38fa548451b1371662d5a26051576a (diff) |
fix import of v2 session redirects: active or inactive
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index ef46cd403e..3ff30f826e 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1217,8 +1217,18 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version) if (processor->set_state (node, version)) { return false; } + + //A2 uses the "active" flag in the toplevel redirect node, not in the child plugin/IO + if (i != children.end()) { + if ((prop = (*i)->property (X_("active"))) != 0) { + if ( string_is_affirmative (prop->value()) ) + processor->activate(); + else + processor->deactivate(); + } + } - return (add_processor (processor, placement) == 0); + return (add_processor (processor, placement, 0, false) == 0); } catch (failed_constructor &err) { |