From 58babb1e9b3a29c405a54ae44d14e1c299635537 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 3 Apr 2019 03:35:40 +0200 Subject: [PATCH] Backport a Mixbus special-case for plugin-tags --- libs/ardour/plugin_manager.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 181516bf0a..6e57f17220 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -1536,6 +1536,14 @@ PluginManager::save_tags () XMLNode* root = new XMLNode (X_("PluginTags")); for (PluginTagList::iterator i = ptags.begin(); i != ptags.end(); ++i) { +#ifdef MIXBUS + if ((*i).type == LADSPA) { + uint32_t id = atoi ((*i).unique_id); + if (id >= 9300 && id <= 9399) { + continue; /* do not write mixbus channelstrip ladspa's in the tagfile */ + } + } +#endif if ((*i).tagtype == FromFactoryFile || (*i).tagtype == FromUserFile) { /* user file should contain only plugins that are (a) newly user-tagged or (b) previously unknown */ continue;