[VFX Reference Update] Fix an issue in linux with the MaterialX library load ordering that was causing double free on editor exit

#rb brandon.schaefer james.singer daniel.coelho
#Jira UE-211485
#Jira UE-211454

#fyi matt.johnson

[CL 32776120 by brooke hubert in 5.4 branch]
This commit is contained in:
brooke hubert
2024-04-05 18:11:00 -04:00
parent 69a391aee6
commit 9fe21ca1f0
2 changed files with 9 additions and 2 deletions

View File

@@ -76,7 +76,15 @@ namespace UnrealBuildTool.Rules
}
);
AddEngineThirdPartyPrivateStaticDependencies(Target, "MaterialX");
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PrivateDependencyModuleNames.AddRange(
new string[]
{
"MaterialX"
}
);
}
}
}
}

View File

@@ -28,7 +28,6 @@ namespace UnrealBuildTool.Rules
"CoreUObject",
"Engine",
"IntelTBB",
"MaterialX", // Needed for the standard data libraries
"Projects", // For plugin manager within UnrealUSDWrapper.cpp
"USDClasses"
}