Backport a Mixbus special-case for plugin-tags

This commit is contained in:
Robin Gareus 2019-04-03 03:35:40 +02:00
parent 925d25851d
commit 58babb1e9b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;