diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-14 15:00:34 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-14 15:50:56 +0100 |
commit | 93180ceea90e597828ea7473b8e181950df66427 (patch) | |
tree | 4483b690c88eeed7051dea06792b278b9943d059 /libs/ardour/plugin_insert.cc | |
parent | d4ad9e348698de3fe2e7b34fef60a6e6d788ea6d (diff) |
Add Inline Control Port Property
This allows to indicate that a control should by default be displayed
inline in the mixer-strip.
Previously that was hard-coded for and enabled for send-level
controls only.
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 9b4aa17b0c..22e40e4b63 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -486,9 +486,12 @@ PluginInsert::create_automatable_parameters () boost::shared_ptr<AutomationList> list(new AutomationList(param, desc)); boost::shared_ptr<AutomationControl> c (new PluginControl(this, param, desc, list)); - if (!automatable || (limit_automatables > 0 && i > limit_automatables)) { + if (!automatable || (limit_automatables > 0 && what_can_be_automated ().size() > limit_automatables)) { c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable)); } + if (desc.inline_ctrl) { + c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::InlineControl)); + } add_control (c); plugin->set_automation_control (i, c); } |