UAT: Fix incorrect logic causing plugin references to override whether a plugin supports a target platform or not.

#rb none
#jira UE-71909

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6011749 in //UE4/Release-4.22/... via CL 6011750
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 6014724 by ben marsh in Dev-VR branch]
This commit is contained in:
ben marsh
2019-04-19 13:02:12 -04:00
parent cddc8e6f3b
commit a04439a9b1
@@ -385,7 +385,12 @@ namespace UnrealBuildTool
/// <returns>True if the plugin should be enabled for this project</returns>
public static bool IsPluginEnabledForProject(PluginInfo Plugin, ProjectDescriptor Project, UnrealTargetPlatform Platform, UnrealTargetConfiguration TargetConfiguration, TargetType Target)
{
bool bEnabled = Plugin.EnabledByDefault && Plugin.Descriptor.SupportsTargetPlatform(Platform);
if (!Plugin.Descriptor.SupportsTargetPlatform(Platform))
{
return false;
}
bool bEnabled = Plugin.EnabledByDefault;
if (Project != null && Project.Plugins != null)
{
foreach (PluginReferenceDescriptor PluginReference in Project.Plugins)