Browse Source

Projucer: Fixed a bug where AAX and RTAS categories were not being recalled correctly

tags/2021-05-28
ed 7 years ago
parent
commit
2204c6b263
1 changed files with 16 additions and 6 deletions
  1. +16
    -6
      extras/Projucer/Source/Project/jucer_Project.cpp

+ 16
- 6
extras/Projucer/Source/Project/jucer_Project.cpp View File

@@ -61,10 +61,6 @@ Project::Project (const File& f)
initialiseMainGroup();
initialiseAudioPluginValues();
coalescePluginFormatValues();
coalescePluginCharacteristicsValues();
updatePluginCategories();
parsedPreprocessorDefs = parsePreprocessorDefs (preprocessorDefsValue.get());
getModules().sortAlphabetically();
@@ -380,15 +376,23 @@ void Project::updatePluginCategories()
{
auto aaxCategory = projectRoot.getProperty (Ids::pluginAAXCategory, {}).toString();
if (aaxCategory.isNotEmpty())
if (getAllAAXCategoryVars().contains (aaxCategory))
pluginAAXCategoryValue = aaxCategory;
else if (getAllAAXCategoryStrings().contains (aaxCategory))
pluginAAXCategoryValue = Array<var> (getAllAAXCategoryVars()[getAllAAXCategoryStrings().indexOf (aaxCategory)]);
else
pluginAAXCategoryValue.resetToDefault();
}
{
auto rtasCategory = projectRoot.getProperty (Ids::pluginRTASCategory, {}).toString();
if (rtasCategory.isNotEmpty())
if (getAllRTASCategoryVars().contains (rtasCategory))
pluginRTASCategoryValue = rtasCategory;
else if (getAllRTASCategoryStrings().contains (rtasCategory))
pluginRTASCategoryValue = Array<var> (getAllRTASCategoryVars()[getAllRTASCategoryStrings().indexOf (rtasCategory)]);
else
pluginRTASCategoryValue.resetToDefault();
}
{
@@ -396,6 +400,8 @@ void Project::updatePluginCategories()
if (vstCategory.isNotEmpty() && getAllVSTCategoryStrings().contains (vstCategory))
pluginVSTCategoryValue = Array<var> (vstCategory);
else
pluginVSTCategoryValue.resetToDefault();
}
{
@@ -410,6 +416,10 @@ void Project::updatePluginCategories()
else if (getAllAUMainTypeStrings().contains (auMainType))
pluginAUMainTypeValue = Array<var> (getAllAUMainTypeVars()[getAllAUMainTypeStrings().indexOf (auMainType)]);
}
else
{
pluginAUMainTypeValue.resetToDefault();
}
}
}


Loading…
Cancel
Save